feat(labels): adding standard labels to k8s deployment and service (#281)

Signed-off-by: paologallinaharbur <paologallina1992@gmail.com>

Signed-off-by: paologallinaharbur <paologallina1992@gmail.com>
This commit is contained in:
PaoloGallina 2022-11-01 14:16:22 +01:00 committed by GitHub
parent 1846238a3d
commit 128be7d6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,7 @@ metadata:
labels:
k8s-app: kube-dns
kubernetes.io/name: "CoreDNS"
app.kubernetes.io/name: coredns
spec:
# replicas: not specified here:
# 1. Default is 1.
@ -91,10 +92,12 @@ spec:
selector:
matchLabels:
k8s-app: kube-dns
app.kubernetes.io/name: coredns
template:
metadata:
labels:
k8s-app: kube-dns
app.kubernetes.io/name: coredns
spec:
priorityClassName: system-cluster-critical
serviceAccountName: coredns
@ -180,9 +183,11 @@ metadata:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "CoreDNS"
app.kubernetes.io/name: coredns
spec:
selector:
k8s-app: kube-dns
app.kubernetes.io/name: coredns
clusterIP: CLUSTER_DNS_IP
ports:
- name: dns