Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Last active October 8, 2025 17:45
Show Gist options
  • Select an option

  • Save chadmcrowell/64f05e3af2a8b874ab16b77b862ec962 to your computer and use it in GitHub Desktop.

Select an option

Save chadmcrowell/64f05e3af2a8b874ab16b77b862ec962 to your computer and use it in GitHub Desktop.
kube-dns YAML
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: CoreDNS
name: kube-dns
namespace: kube-system
spec:
ports:
- name: dns
port: 53
protocol: UDP
targetPort: 53
- name: dns-tcp
port: 53
protocol: TCP
targetPort: 53
- name: metrics
port: 9153
protocol: TCP
targetPort: 9153
selector:
k8s-app: kube-dns
type: ClusterIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment