Skip to content

Instantly share code, notes, and snippets.

@jefflaplante
Created October 24, 2016 02:38
Show Gist options
  • Save jefflaplante/9f7f93fdf99c9ffaae5b6795fa7ff943 to your computer and use it in GitHub Desktop.
Save jefflaplante/9f7f93fdf99c9ffaae5b6795fa7ff943 to your computer and use it in GitHub Desktop.
kube-dns.yaml
apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/created-by: |
{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicationController","namespace":"kube-system","name":"kube-dns-v20","uid":"c3e7f767-955b-11e6-8079-42010a8a0097","apiVersion":"v1","resourceVersion":"87"}}
scheduler.alpha.kubernetes.io/critical-pod: ""
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
creationTimestamp: 2016-10-18T17:53:24Z
generateName: kube-dns-v20-
labels:
k8s-app: kube-dns
version: v20
name: kube-dns-v20-iibe6
namespace: kube-system
ownerReferences:
- apiVersion: v1
controller: true
kind: ReplicationController
name: kube-dns-v20
uid: c3e7f767-955b-11e6-8079-42010a8a0097
resourceVersion: "242"
selfLink: /api/v1/namespaces/kube-system/pods/kube-dns-v20-iibe6
uid: c400124e-955b-11e6-8079-42010a8a0097
spec:
containers:
- args:
- --domain=cluster.local.
- --dns-port=10053
image: gcr.io/google_containers/kubedns-amd64:1.8
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz-kubedns
port: 8080
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: kubedns
ports:
- containerPort: 10053
name: dns-local
protocol: UDP
- containerPort: 10053
name: dns-tcp-local
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /readiness
port: 8081
scheme: HTTP
initialDelaySeconds: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
memory: 170Mi
requests:
cpu: 100m
memory: 70Mi
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-nor4j
readOnly: true
- args:
- --cache-size=1000
- --no-resolv
- --server=127.0.0.1#10053
- --log-facility=-
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz-dnsmasq
port: 8080
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: dnsmasq
ports:
- containerPort: 53
name: dns
protocol: UDP
- containerPort: 53
name: dns-tcp
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-nor4j
readOnly: true
- args:
- --cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1 >/dev/null
- --url=/healthz-dnsmasq
- --cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1:10053 >/dev/null
- --url=/healthz-kubedns
- --port=8080
- --quiet
image: gcr.io/google_containers/exechealthz-amd64:1.2
imagePullPolicy: IfNotPresent
name: healthz
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
memory: 50Mi
requests:
cpu: 10m
memory: 50Mi
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-nor4j
readOnly: true
dnsPolicy: Default
nodeName: gke-matterhorn-test-default-pool-ead683d4-rmyi
restartPolicy: Always
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
volumes:
- name: default-token-nor4j
secret:
defaultMode: 420
secretName: default-token-nor4j
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2016-10-18T17:53:27Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2016-10-18T17:54:07Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2016-10-18T17:53:27Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://3fd873099afcc70fa82635c9f3079033e6f35645be68d129a88c20dd5f0cb728
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
imageID: docker://sha256:3ec65756a89b70b4095e43a340a6e2d5696cac7a93a29619ff5c4b6be9af2773
lastState: {}
name: dnsmasq
ready: true
restartCount: 0
state:
running:
startedAt: 2016-10-18T17:53:55Z
- containerID: docker://f1babe2230492205fda475ed92bb1b0cba65f342cf96a2283e2f567cbf3d577c
image: gcr.io/google_containers/exechealthz-amd64:1.2
imageID: docker://sha256:93a43bfb39bfe9795e76ccd75d7a0e6d40e2ae8563456a2a77c1b4cfc3bbd967
lastState: {}
name: healthz
ready: true
restartCount: 0
state:
running:
startedAt: 2016-10-18T17:53:56Z
- containerID: docker://1d69c1c3f84cf57dbdf269a6ed221840933a84a46e9a2955a6a5d2d64d237727
image: gcr.io/google_containers/kubedns-amd64:1.8
imageID: docker://sha256:597a45ef55ec52401fdcd2e1d6ee53c74b04afb264490d7fa67b6d98ad330dfe
lastState: {}
name: kubedns
ready: true
restartCount: 0
state:
running:
startedAt: 2016-10-18T17:53:54Z
hostIP: 10.138.0.17
phase: Running
podIP: 10.16.1.6
startTime: 2016-10-18T17:53:27Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment