Skip to content

Commit

Permalink
Update gitkube-setup.yaml to new k8s api
Browse files Browse the repository at this point in the history
I've updated deployment apiVersion to apps/v1 due to 1.16 k8s api updates.
New api version also need selector field.
  • Loading branch information
easyenglishcoding authored Jan 27, 2020
1 parent 111107a commit 416c8d7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions manifests/gitkube-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ metadata:
name: gitkube-ci-conf
namespace: kube-system
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: gitkubed
name: gitkubed
namespace: kube-system
spec:
selector:
matchLabels:
app: gitkubed
replicas: 1
strategy:
rollingUpdate:
Expand Down Expand Up @@ -101,14 +104,17 @@ spec:
name: gitkube-ci-conf
name: gitkube-ci-conf
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: gitkube-controller
name: gitkube-controller
namespace: kube-system
spec:
selector:
matchLabels:
app: gitkube-controller
replicas: 1
strategy:
rollingUpdate:
Expand All @@ -134,5 +140,3 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace


0 comments on commit 416c8d7

Please sign in to comment.