Skip to content

Commit 416c8d7

Browse files
Update gitkube-setup.yaml to new k8s api
I've updated deployment apiVersion to apps/v1 due to 1.16 k8s api updates. New api version also need selector field.
1 parent 111107a commit 416c8d7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

manifests/gitkube-setup.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,17 @@ metadata:
3838
name: gitkube-ci-conf
3939
namespace: kube-system
4040
---
41-
apiVersion: extensions/v1beta1
41+
apiVersion: apps/v1
4242
kind: Deployment
4343
metadata:
4444
labels:
4545
app: gitkubed
4646
name: gitkubed
4747
namespace: kube-system
4848
spec:
49+
selector:
50+
matchLabels:
51+
app: gitkubed
4952
replicas: 1
5053
strategy:
5154
rollingUpdate:
@@ -101,14 +104,17 @@ spec:
101104
name: gitkube-ci-conf
102105
name: gitkube-ci-conf
103106
---
104-
apiVersion: extensions/v1beta1
107+
apiVersion: apps/v1
105108
kind: Deployment
106109
metadata:
107110
labels:
108111
app: gitkube-controller
109112
name: gitkube-controller
110113
namespace: kube-system
111114
spec:
115+
selector:
116+
matchLabels:
117+
app: gitkube-controller
112118
replicas: 1
113119
strategy:
114120
rollingUpdate:
@@ -134,5 +140,3 @@ spec:
134140
valueFrom:
135141
fieldRef:
136142
fieldPath: metadata.namespace
137-
138-

0 commit comments

Comments
 (0)