mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 04:28:38 +02:00
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:
parent
1846238a3d
commit
128be7d6ce
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
k8s-app: kube-dns
|
k8s-app: kube-dns
|
||||||
kubernetes.io/name: "CoreDNS"
|
kubernetes.io/name: "CoreDNS"
|
||||||
|
app.kubernetes.io/name: coredns
|
||||||
spec:
|
spec:
|
||||||
# replicas: not specified here:
|
# replicas: not specified here:
|
||||||
# 1. Default is 1.
|
# 1. Default is 1.
|
||||||
|
@ -91,10 +92,12 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
k8s-app: kube-dns
|
k8s-app: kube-dns
|
||||||
|
app.kubernetes.io/name: coredns
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
k8s-app: kube-dns
|
k8s-app: kube-dns
|
||||||
|
app.kubernetes.io/name: coredns
|
||||||
spec:
|
spec:
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: system-cluster-critical
|
||||||
serviceAccountName: coredns
|
serviceAccountName: coredns
|
||||||
|
@ -180,9 +183,11 @@ metadata:
|
||||||
k8s-app: kube-dns
|
k8s-app: kube-dns
|
||||||
kubernetes.io/cluster-service: "true"
|
kubernetes.io/cluster-service: "true"
|
||||||
kubernetes.io/name: "CoreDNS"
|
kubernetes.io/name: "CoreDNS"
|
||||||
|
app.kubernetes.io/name: coredns
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
k8s-app: kube-dns
|
k8s-app: kube-dns
|
||||||
|
app.kubernetes.io/name: coredns
|
||||||
clusterIP: CLUSTER_DNS_IP
|
clusterIP: CLUSTER_DNS_IP
|
||||||
ports:
|
ports:
|
||||||
- name: dns
|
- name: dns
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue