diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index 70779c1..1017f78 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: unbound-site labels: - app: unbound-site + app.kubernetes.io/name: unbound-site annotations: kubernetes.io/change-cause: "${TIMESTAMP} Deployed commit id: ${COMMIT}" spec: @@ -16,11 +16,11 @@ spec: minReadySeconds: 30 selector: matchLabels: - app: unbound-site + app.kubernetes.io/name: unbound-site template: metadata: labels: - app: unbound-site + app.kubernetes.io/name: unbound-site spec: affinity: podAntiAffinity: @@ -29,7 +29,7 @@ spec: podAffinityTerm: labelSelector: matchExpressions: - - key: "app" + - key: "app.kubernetes.io/name" operator: In values: - unbound-site @@ -62,11 +62,11 @@ kind: Service metadata: name: unbound-site labels: - app: unbound-site + app.kubernetes.io/name: unbound-site spec: type: NodePort selector: - app: unbound-site + app.kubernetes.io/name: unbound-site ports: - port: 80 targetPort: 80