Skip to content

Commit a16527c

Browse files
authored
Update apiVersion for compatability with newer K8s versions (#58)
* Update apiVersion for compatability with newer K8s versions * This selector may also be required now
1 parent 0ff225d commit a16527c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deploy/pubsub/templates/deployment.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ imagePullSecrets:
1010
- name: {{ tpl .Values.imagePullSecretsName . }}
1111
{{ end }}
1212
---
13-
apiVersion: extensions/v1beta1
13+
apiVersion: apps/v1
1414
kind: Deployment
1515
metadata:
1616
name: {{ include "pubsub.fullname" . }}
1717
namespace: {{ .Release.Namespace }}
1818
spec:
1919
replicas: {{ .Values.replicaCount }}
20+
selector:
21+
matchLabels:
22+
app.kubernetes.io/name: {{ include "pubsub.name" . }}
23+
app.kubernetes.io/instance: {{ .Release.Name }}
2024
template:
2125
metadata:
2226
labels:

0 commit comments

Comments
 (0)