chore: Adopt kubernetes recommand label

This commit is contained in:
mowangdk
2023-06-08 20:56:54 +08:00
parent 2c1f4b9b38
commit f83e81a856
3 changed files with 10 additions and 10 deletions

View File

@@ -45,10 +45,10 @@ apiVersion: v1
metadata: metadata:
name: csi-snapshotter name: csi-snapshotter
labels: labels:
app: csi-snapshotter app.kubernetes.io/name: csi-snapshotter
spec: spec:
selector: selector:
app: csi-snapshotter app.kubernetes.io/name: csi-snapshotter
ports: ports:
- name: dummy - name: dummy
port: 12345 port: 12345
@@ -63,11 +63,11 @@ spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: csi-snapshotter app.kubernetes.io/name: csi-snapshotter
template: template:
metadata: metadata:
labels: labels:
app: csi-snapshotter app.kubernetes.io/name: csi-snapshotter
spec: spec:
serviceAccountName: csi-snapshotter serviceAccountName: csi-snapshotter
containers: containers:

View File

@@ -15,7 +15,7 @@ spec:
replicas: 2 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: snapshot-controller app.kubernetes.io/name: snapshot-controller
# the snapshot controller won't be marked as ready if the v1 CRDs are unavailable # the snapshot controller won't be marked as ready if the v1 CRDs are unavailable
# in #504 the snapshot-controller will exit after around 7.5 seconds if it # in #504 the snapshot-controller will exit after around 7.5 seconds if it
# can't find the v1 CRDs so this value should be greater than that # can't find the v1 CRDs so this value should be greater than that
@@ -28,7 +28,7 @@ spec:
template: template:
metadata: metadata:
labels: labels:
app: snapshot-controller app.kubernetes.io/name: snapshot-controller
spec: spec:
serviceAccountName: snapshot-controller serviceAccountName: snapshot-controller
containers: containers:

View File

@@ -5,16 +5,16 @@ metadata:
name: snapshot-validation-deployment name: snapshot-validation-deployment
namespace: default # NOTE: change the namespace namespace: default # NOTE: change the namespace
labels: labels:
app: snapshot-validation app.kubernetes.io/name: snapshot-validation
spec: spec:
replicas: 3 replicas: 3
selector: selector:
matchLabels: matchLabels:
app: snapshot-validation app.kubernetes.io/name: snapshot-validation
template: template:
metadata: metadata:
labels: labels:
app: snapshot-validation app.kubernetes.io/name: snapshot-validation
spec: spec:
serviceAccountName: snapshot-webhook serviceAccountName: snapshot-webhook
containers: containers:
@@ -40,7 +40,7 @@ metadata:
namespace: default # NOTE: change the namespace namespace: default # NOTE: change the namespace
spec: spec:
selector: selector:
app: snapshot-validation app.kubernetes.io/name: snapshot-validation
ports: ports:
- protocol: TCP - protocol: TCP
port: 443 # Change if needed port: 443 # Change if needed