diff --git a/vertical-pod-autoscaler/deploy/admission-controller-deployment.yaml b/vertical-pod-autoscaler/deploy/admission-controller-deployment.yaml index 15eb2a10de81..3b27648c5de1 100644 --- a/vertical-pod-autoscaler/deploy/admission-controller-deployment.yaml +++ b/vertical-pod-autoscaler/deploy/admission-controller-deployment.yaml @@ -13,27 +13,27 @@ spec: spec: serviceAccountName: vpa-admission-controller containers: - - name: admission-controller - image: k8s.gcr.io/vpa-admission-controller:0.5.0 - imagePullPolicy: Always - env: - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - volumeMounts: - - name: tls-certs - mountPath: "/etc/tls-certs" - readOnly: true - resources: - limits: - cpu: 200m - memory: 500Mi - requests: - cpu: 50m - memory: 200Mi - ports: - - containerPort: 8000 + - name: admission-controller + image: k8s.gcr.io/vpa-admission-controller:0.5.0 + imagePullPolicy: Always + env: + - name: NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + volumeMounts: + - name: tls-certs + mountPath: "/etc/tls-certs" + readOnly: true + resources: + limits: + cpu: 200m + memory: 500Mi + requests: + cpu: 50m + memory: 200Mi + ports: + - containerPort: 8000 volumes: - name: tls-certs secret: diff --git a/vertical-pod-autoscaler/deploy/updater-deployment.yaml b/vertical-pod-autoscaler/deploy/updater-deployment.yaml index 33b399dcac28..6daca9a2559d 100644 --- a/vertical-pod-autoscaler/deploy/updater-deployment.yaml +++ b/vertical-pod-autoscaler/deploy/updater-deployment.yaml @@ -19,15 +19,15 @@ spec: spec: serviceAccountName: vpa-updater containers: - - name: updater - image: k8s.gcr.io/vpa-updater:0.5.0 - imagePullPolicy: Always - resources: - limits: - cpu: 200m - memory: 1000Mi - requests: - cpu: 50m - memory: 500Mi - ports: - - containerPort: 8080 + - name: updater + image: k8s.gcr.io/vpa-updater:0.5.0 + imagePullPolicy: Always + resources: + limits: + cpu: 200m + memory: 1000Mi + requests: + cpu: 50m + memory: 500Mi + ports: + - containerPort: 8080 diff --git a/vertical-pod-autoscaler/deploy/vpa-beta-crd.yaml b/vertical-pod-autoscaler/deploy/vpa-beta-crd.yaml index 08ca0546a979..b55e5a3d2f78 100644 --- a/vertical-pod-autoscaler/deploy/vpa-beta-crd.yaml +++ b/vertical-pod-autoscaler/deploy/vpa-beta-crd.yaml @@ -12,7 +12,7 @@ spec: singular: verticalpodautoscaler kind: VerticalPodAutoscaler shortNames: - - vpa + - vpa validation: # openAPIV3Schema is the schema for validating custom objects. openAPIV3Schema: @@ -45,4 +45,4 @@ spec: singular: verticalpodautoscalercheckpoint kind: VerticalPodAutoscalerCheckpoint shortNames: - - vpacheckpoint + - vpacheckpoint diff --git a/vertical-pod-autoscaler/deploy/vpa-beta2-crd.yaml b/vertical-pod-autoscaler/deploy/vpa-beta2-crd.yaml index ca8fa7ed8d5a..046b55f69098 100644 --- a/vertical-pod-autoscaler/deploy/vpa-beta2-crd.yaml +++ b/vertical-pod-autoscaler/deploy/vpa-beta2-crd.yaml @@ -11,15 +11,15 @@ spec: singular: verticalpodautoscaler kind: VerticalPodAutoscaler shortNames: - - vpa + - vpa version: v1beta1 versions: - - name: v1beta1 - served: true - storage: false - - name: v1beta2 - served: true - storage: true + - name: v1beta1 + served: true + storage: false + - name: v1beta2 + served: true + storage: true validation: # openAPIV3Schema is the schema for validating custom objects. openAPIV3Schema: @@ -50,13 +50,12 @@ spec: singular: verticalpodautoscalercheckpoint kind: VerticalPodAutoscalerCheckpoint shortNames: - - vpacheckpoint + - vpacheckpoint version: v1beta1 versions: - - name: v1beta1 - served: true - storage: false - - name: v1beta2 - served: true - storage: true - + - name: v1beta1 + served: true + storage: false + - name: v1beta2 + served: true + storage: true diff --git a/vertical-pod-autoscaler/deploy/vpa-crd.yaml b/vertical-pod-autoscaler/deploy/vpa-crd.yaml index 585ee5442351..a248c8641d35 100644 --- a/vertical-pod-autoscaler/deploy/vpa-crd.yaml +++ b/vertical-pod-autoscaler/deploy/vpa-crd.yaml @@ -12,7 +12,7 @@ spec: singular: verticalpodautoscaler kind: VerticalPodAutoscaler shortNames: - - vpa + - vpa validation: # openAPIV3Schema is the schema for validating custom objects. openAPIV3Schema: @@ -45,4 +45,4 @@ spec: singular: verticalpodautoscalercheckpoint kind: VerticalPodAutoscalerCheckpoint shortNames: - - vpacheckpoint + - vpacheckpoint diff --git a/vertical-pod-autoscaler/deploy/vpa-rbac.yaml b/vertical-pod-autoscaler/deploy/vpa-rbac.yaml index ff1fe8690a83..b158f8113c41 100644 --- a/vertical-pod-autoscaler/deploy/vpa-rbac.yaml +++ b/vertical-pod-autoscaler/deploy/vpa-rbac.yaml @@ -4,108 +4,108 @@ kind: ClusterRole metadata: name: system:metrics-reader rules: -- apiGroups: - - "metrics.k8s.io" - resources: - - pods - verbs: - - get - - list + - apiGroups: + - "metrics.k8s.io" + resources: + - pods + verbs: + - get + - list --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: system:vpa-actor rules: -- apiGroups: - - "" - resources: - - pods - - nodes - verbs: - - get - - list - - watch -- apiGroups: - - "" - resources: - - events - verbs: - - get - - list - - watch - - create -- apiGroups: - - "poc.autoscaling.k8s.io" - resources: - - verticalpodautoscalers - verbs: - - get - - list - - watch - - patch -- apiGroups: - - "autoscaling.k8s.io" - resources: - - verticalpodautoscalers - verbs: - - get - - list - - watch - - patch + - apiGroups: + - "" + resources: + - pods + - nodes + verbs: + - get + - list + - watch + - apiGroups: + - "" + resources: + - events + verbs: + - get + - list + - watch + - create + - apiGroups: + - "poc.autoscaling.k8s.io" + resources: + - verticalpodautoscalers + verbs: + - get + - list + - watch + - patch + - apiGroups: + - "autoscaling.k8s.io" + resources: + - verticalpodautoscalers + verbs: + - get + - list + - watch + - patch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: system:vpa-checkpoint-actor rules: -- apiGroups: - - "poc.autoscaling.k8s.io" - resources: - - verticalpodautoscalercheckpoints - verbs: - - get - - list - - watch - - create - - patch - - delete -- apiGroups: - - "autoscaling.k8s.io" - resources: - - verticalpodautoscalercheckpoints - verbs: - - get - - list - - watch - - create - - patch - - delete -- apiGroups: - - "" - resources: - - namespaces - verbs: - - get - - list + - apiGroups: + - "poc.autoscaling.k8s.io" + resources: + - verticalpodautoscalercheckpoints + verbs: + - get + - list + - watch + - create + - patch + - delete + - apiGroups: + - "autoscaling.k8s.io" + resources: + - verticalpodautoscalercheckpoints + verbs: + - get + - list + - watch + - create + - patch + - delete + - apiGroups: + - "" + resources: + - namespaces + verbs: + - get + - list --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: system:evictioner rules: -- apiGroups: - - "extensions" - resources: - - replicasets - verbs: - - get -- apiGroups: - - "" - resources: - - pods/eviction - verbs: - - create + - apiGroups: + - "extensions" + resources: + - replicasets + verbs: + - get + - apiGroups: + - "" + resources: + - pods/eviction + verbs: + - create --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -116,9 +116,9 @@ roleRef: kind: ClusterRole name: system:metrics-reader subjects: -- kind: ServiceAccount - name: vpa-recommender - namespace: kube-system + - kind: ServiceAccount + name: vpa-recommender + namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -129,12 +129,12 @@ roleRef: kind: ClusterRole name: system:vpa-actor subjects: -- kind: ServiceAccount - name: vpa-recommender - namespace: kube-system -- kind: ServiceAccount - name: vpa-updater - namespace: kube-system + - kind: ServiceAccount + name: vpa-recommender + namespace: kube-system + - kind: ServiceAccount + name: vpa-updater + namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -145,42 +145,42 @@ roleRef: kind: ClusterRole name: system:vpa-checkpoint-actor subjects: -- kind: ServiceAccount - name: vpa-recommender - namespace: kube-system + - kind: ServiceAccount + name: vpa-recommender + namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: system:vpa-target-reader rules: -- apiGroups: - - "" - resources: - - replicationcontrollers - verbs: - - get - - list - - watch -- apiGroups: - - apps - resources: - - daemonsets - - deployments - - replicasets - - statefulsets - verbs: - - get - - list - - watch -- apiGroups: - - batch - resources: - - jobs - verbs: - - get - - list - - watch + - apiGroups: + - "" + resources: + - replicationcontrollers + verbs: + - get + - list + - watch + - apiGroups: + - apps + resources: + - daemonsets + - deployments + - replicasets + - statefulsets + verbs: + - get + - list + - watch + - apiGroups: + - batch + resources: + - jobs + verbs: + - get + - list + - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -191,15 +191,15 @@ roleRef: kind: ClusterRole name: system:vpa-target-reader subjects: -- kind: ServiceAccount - name: vpa-recommender - namespace: kube-system -- kind: ServiceAccount - name: vpa-admission-controller - namespace: kube-system -- kind: ServiceAccount - name: vpa-updater - namespace: kube-system + - kind: ServiceAccount + name: vpa-recommender + namespace: kube-system + - kind: ServiceAccount + name: vpa-admission-controller + namespace: kube-system + - kind: ServiceAccount + name: vpa-updater + namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -210,9 +210,9 @@ roleRef: kind: ClusterRole name: system:evictioner subjects: -- kind: ServiceAccount - name: vpa-updater - namespace: kube-system + - kind: ServiceAccount + name: vpa-updater + namespace: kube-system --- apiVersion: v1 kind: ServiceAccount @@ -225,41 +225,41 @@ kind: ClusterRole metadata: name: system:admission-controller rules: -- apiGroups: - - "" - resources: - - pods - - configmaps - - nodes - verbs: - - get - - list - - watch -- apiGroups: - - "admissionregistration.k8s.io" - resources: - - mutatingwebhookconfigurations - verbs: - - create - - delete - - get - - list -- apiGroups: - - "poc.autoscaling.k8s.io" - resources: - - verticalpodautoscalers - verbs: - - get - - list - - watch -- apiGroups: - - "autoscaling.k8s.io" - resources: - - verticalpodautoscalers - verbs: - - get - - list - - watch + - apiGroups: + - "" + resources: + - pods + - configmaps + - nodes + verbs: + - get + - list + - watch + - apiGroups: + - "admissionregistration.k8s.io" + resources: + - mutatingwebhookconfigurations + verbs: + - create + - delete + - get + - list + - apiGroups: + - "poc.autoscaling.k8s.io" + resources: + - verticalpodautoscalers + verbs: + - get + - list + - watch + - apiGroups: + - "autoscaling.k8s.io" + resources: + - verticalpodautoscalers + verbs: + - get + - list + - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -270,6 +270,6 @@ roleRef: kind: ClusterRole name: system:admission-controller subjects: -- kind: ServiceAccount - name: vpa-admission-controller - namespace: kube-system + - kind: ServiceAccount + name: vpa-admission-controller + namespace: kube-system