Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 71 additions & 86 deletions assets/components/openshift-dns/dns/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,96 +1,89 @@
kind: DaemonSet
apiVersion: apps/v1
# name, namespace and labels are set at runtime
spec:
# minReadySeconds should be 3x the readiness probe's polling interval (i.e. periodSeconds).
minReadySeconds: 9
template:
metadata:
annotations:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
dns.operator.openshift.io/daemonset-dns: default
spec:
serviceAccountName: dns
priorityClassName: system-node-critical
containers:
- name: dns
imagePullPolicy: IfNotPresent
terminationMessagePolicy: FallbackToLogsOnError
command: ["coredns"]
args: ["-conf", "/etc/coredns/Corefile"]
volumeMounts:
- name: config-volume
mountPath: /etc/coredns
readOnly: true
ports:
- containerPort: 5353
name: dns
protocol: UDP
- containerPort: 5353
name: dns-tcp
protocol: TCP
readinessProbe:
httpGet:
path: /ready
port: 8181
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 3 # Update the daemonset's spec.minReadySeconds above if you change this value!
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 3
livenessProbe:
httpGet:
path: /health
port: 8080
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
resources:
requests:
cpu: 50m
memory: 70Mi
image: '{{ .ReleaseImage.coredns }}'
- name: kube-rbac-proxy
args:
- --logtostderr
- --secure-listen-address=:9154
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
- --upstream=http://127.0.0.1:9153/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
ports:
- containerPort: 9154
name: metrics
resources:
requests:
cpu: 10m
memory: 40Mi
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-tls
readOnly: true
image: '{{ .ReleaseImage.kube_rbac_proxy }}'
imagePullPolicy: IfNotPresent
- name: dns
# image is set at runtime
imagePullPolicy: IfNotPresent
terminationMessagePolicy: FallbackToLogsOnError
command: [ "coredns" ]
args: [ "-conf", "/etc/coredns/Corefile" ]
volumeMounts:
- name: config-volume
mountPath: /etc/coredns
readOnly: true
ports:
- containerPort: 5353
name: dns
protocol: UDP
- containerPort: 5353
name: dns-tcp
protocol: TCP
readinessProbe:
httpGet:
path: /ready
port: 8181
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 3 # Update the daemonset's spec.minReadySeconds above if you change this value!
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 3
livenessProbe:
httpGet:
path: /health
port: 8080
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
resources:
requests:
cpu: 50m
memory: 70Mi
- name: kube-rbac-proxy
# image is set at runtime
args:
- --logtostderr
- --secure-listen-address=:9154
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
- --upstream=http://127.0.0.1:9153/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
ports:
- containerPort: 9154
name: metrics
resources:
requests:
cpu: 10m
memory: 40Mi
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-tls
readOnly: true
dnsPolicy: Default
# nodeSelector is set at runtime.
volumes:
- name: config-volume
configMap:
items:
- key: Corefile
path: Corefile
name: dns-default
- name: metrics-tls
secret:
defaultMode: 420
secretName: dns-default-metrics-tls
nodeSelector:
kubernetes.io/os: linux
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
- name: config-volume
configMap:
# Name is set at runtime
items:
- key: Corefile
path: Corefile
- name: metrics-tls
# secretName is set at runtime
# tolerations is set at runtime.
updateStrategy:
type: RollingUpdate
rollingUpdate:
Expand All @@ -102,11 +95,3 @@ spec:
maxSurge: 10%
# maxUnavailable must be zero when maxSurge is nonzero.
maxUnavailable: 0
selector:
matchLabels:
dns.operator.openshift.io/daemonset-dns: default
metadata:
name: dns-default
namespace: openshift-dns
labels:
dns.operator.openshift.io/owning-dns: default
35 changes: 15 additions & 20 deletions assets/components/openshift-dns/dns/service.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
kind: Service
apiVersion: v1
# name, namespace,labels and annotations are set at runtime
spec:
# clusterIP will be automatically managed.
# selector is set at runtime
ports:
- name: dns
port: 53
targetPort: dns
protocol: UDP
- name: dns-tcp
port: 53
targetPort: dns-tcp
protocol: TCP
- name: metrics
port: 9154
targetPort: metrics
protocol: TCP
clusterIP: '{{.ClusterIP}}'
selector:
dns.operator.openshift.io/daemonset-dns: default
metadata:
annotations:
service.beta.openshift.io/serving-cert-secret-name: dns-default-metrics-tls
name: dns-default
namespace: openshift-dns
- name: dns
port: 53
targetPort: dns
protocol: UDP
- name: dns-tcp
port: 53
targetPort: dns-tcp
protocol: TCP
- name: metrics
port: 9154
targetPort: metrics
protocol: TCP
140 changes: 0 additions & 140 deletions assets/components/openshift-dns/node-resolver/daemonset.yaml

This file was deleted.

Loading