From c9c4a8fbb93fe3ee8bb00ecd6bffc055b52c297e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Reegn?= Date: Thu, 10 Oct 2019 12:08:11 +0200 Subject: [PATCH] Replace registry-creds addon ReplicationController with Deployment As the official k8s docs state: > Note: A Deployment that configures a ReplicaSet is now the recommended way to set up replication. https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/ --- .../registry-creds/registry-creds-rc.yaml.tmpl | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/deploy/addons/registry-creds/registry-creds-rc.yaml.tmpl b/deploy/addons/registry-creds/registry-creds-rc.yaml.tmpl index 2dbc0b4e821b..8d3c3f1fd480 100644 --- a/deploy/addons/registry-creds/registry-creds-rc.yaml.tmpl +++ b/deploy/addons/registry-creds/registry-creds-rc.yaml.tmpl @@ -1,27 +1,24 @@ -apiVersion: v1 -kind: ReplicationController +apiVersion: apps/v1 +kind: Deployment metadata: name: registry-creds namespace: kube-system labels: - version: v1.9 addonmanager.kubernetes.io/mode: Reconcile kubernetes.io/minikube-addons: registry-creds spec: replicas: 1 selector: - name: registry-creds - version: v1.9 - addonmanager.kubernetes.io/mode: Reconcile + matchLabels: + name: registry-creds template: metadata: labels: name: registry-creds - version: v1.9 addonmanager.kubernetes.io/mode: Reconcile spec: containers: - - image: registry.hub.docker.com/upmcenterprises/registry-creds:1.9 + - image: upmcenterprises/registry-creds:1.9 name: registry-creds imagePullPolicy: Always env: