mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-03-14 14:16:16 +01: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:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue