Skip to content

Commit c9c4a8f

Browse files
committed
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/
1 parent d139781 commit c9c4a8f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

deploy/addons/registry-creds/registry-creds-rc.yaml.tmpl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
apiVersion: v1
2-
kind: ReplicationController
1+
apiVersion: apps/v1
2+
kind: Deployment
33
metadata:
44
name: registry-creds
55
namespace: kube-system
66
labels:
7-
version: v1.9
87
addonmanager.kubernetes.io/mode: Reconcile
98
kubernetes.io/minikube-addons: registry-creds
109
spec:
1110
replicas: 1
1211
selector:
13-
name: registry-creds
14-
version: v1.9
15-
addonmanager.kubernetes.io/mode: Reconcile
12+
matchLabels:
13+
name: registry-creds
1614
template:
1715
metadata:
1816
labels:
1917
name: registry-creds
20-
version: v1.9
2118
addonmanager.kubernetes.io/mode: Reconcile
2219
spec:
2320
containers:
24-
- image: registry.hub.docker.com/upmcenterprises/registry-creds:1.9
21+
- image: upmcenterprises/registry-creds:1.9
2522
name: registry-creds
2623
imagePullPolicy: Always
2724
env:

0 commit comments

Comments
 (0)