diff --git a/templates/resources/k8s/deployment.yml b/templates/resources/k8s/deployment.yml index 5fda91d5..0dc32036 100644 --- a/templates/resources/k8s/deployment.yml +++ b/templates/resources/k8s/deployment.yml @@ -1,9 +1,12 @@ -apiVersion : apps/v1beta1 +apiVersion : apps/v1 kind: Deployment metadata: name: {{#toAlphaNumericString imageRepository 50}}{{/toAlphaNumericString}} spec: replicas: 1 + selector: + matchLabels: + app: {{#toAlphaNumericString imageRepository 50}}{{/toAlphaNumericString}} template: metadata: labels: @@ -13,4 +16,4 @@ spec: - name: {{#toAlphaNumericString imageRepository 50}}{{/toAlphaNumericString}} image: {{ containerRegistryConnection.Authorization.Parameters.loginServer }}/{{#toAlphaNumericString imageRepository 50}}{{/toAlphaNumericString}} ports: - - containerPort: {{ servicePort }} \ No newline at end of file + - containerPort: {{ servicePort }}