Update deployment manifest to the latest Kubernetes api version.
@@ -132,7 +132,7 @@ function(
};
local deployment = {
- apiVersion: 'extensions/v1beta1',
+ apiVersion: 'apps/v1',
kind: 'Deployment',
metadata: {
labels: labels,
@@ -145,6 +145,9 @@ function(
spec: {
revisionHistoryLimit: 3,
replicas: replicas,
+ selector: {
+ matchLabels: labels
+ },
template: {
metadata: {
name: fullyQualifiedName,
