Skip to content

Instantly share code, notes, and snippets.

@MrHohn
Created March 21, 2017 16:09
Show Gist options
  • Save MrHohn/294a79821322430a8e93e935f2b46de3 to your computer and use it in GitHub Desktop.
Save MrHohn/294a79821322430a8e93e935f2b46de3 to your computer and use it in GitHub Desktop.
# $ kubectl get deploy,rs,pods --namespace=kube-system -l k8s-app=kube-dns-autoscaler -o yaml
apiVersion: v1
items:
- apiVersion: apps/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{},"labels":{"addonmanager.kubernetes.io/mode":"Reconcile","k8s-app":"kube-dns-autoscaler","kubernetes.io/clus
ter-service":"true"},"name":"kube-dns-autoscaler","namespace":"kube-system"},"spec":{"template":{"metadata":{"annotations":{"scheduler.alpha.kubernetes.io/critical-pod":""},"labels":{"k8s-app":"kube-
dns-autoscaler"}},"spec":{"containers":[{"command":["/cluster-proportional-autoscaler","--namespace=kube-system","--configmap=kube-dns-autoscaler","--target=Deployment/kube-dns","--default-params={\"
linear\":{\"coresPerReplica\":256,\"nodesPerReplica\":16,\"preventSinglePointFailure\":true}}","--logtostderr=true","--v=2"],"image":"gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.
1.1","name":"autoscaler","resources":{"requests":{"cpu":"20m","memory":"10Mi"}}}],"tolerations":[{"key":"CriticalAddonsOnly","operator":"Exists"}]}}}}
creationTimestamp: 2017-03-21T01:41:55Z
generation: 2
labels:
addonmanager.kubernetes.io/mode: Reconcile
k8s-app: kube-dns-autoscaler
kubernetes.io/cluster-service: "true"
name: kube-dns-autoscaler
namespace: kube-system
resourceVersion: "90507"
selfLink: /apis/apps/v1beta1/namespaces/kube-system/deployments/kube-dns-autoscaler
uid: 90e4ba36-0dd7-11e7-89a5-42010a800003
spec:
replicas: 1
selector:
matchLabels:
k8s-app: kube-dns-autoscaler
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
creationTimestamp: null
labels:
k8s-app: kube-dns-autoscaler
spec:
containers:
- command:
- /cluster-proportional-autoscaler
- --namespace=kube-system
- --configmap=kube-dns-autoscaler
- --target=Deployment/kube-dns
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"preventSinglePointFailure":true}}
- --logtostderr=true
- --v=2
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.1.1
imagePullPolicy: IfNotPresent
name: autoscaler
resources:
requests:
cpu: 20m
memory: 10Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
status:
availableReplicas: 1
conditions:
- lastTransitionTime: 2017-03-21T01:41:55Z
lastUpdateTime: 2017-03-21T01:41:55Z
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 1
replicas: 1
updatedReplicas: 1
- apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
annotations:
deployment.kubernetes.io/desired-replicas: "1"
deployment.kubernetes.io/max-replicas: "2"
deployment.kubernetes.io/revision: "2"
creationTimestamp: 2017-03-21T03:32:01Z
generation: 1
labels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "1733107464"
name: kube-dns-autoscaler-1733107464
namespace: kube-system
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: Deployment
name: kube-dns-autoscaler
uid: 90e4ba36-0dd7-11e7-89a5-42010a800003
resourceVersion: "10311"
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/replicasets/kube-dns-autoscaler-1733107464
uid: f26f5749-0de6-11e7-9604-42010a800003
spec:
replicas: 1
selector:
matchLabels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "1733107464"
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
creationTimestamp: null
labels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "1733107464"
spec:
containers:
- command:
- /cluster-proportional-autoscaler
- --namespace=kube-system
- --configmap=kube-dns-autoscaler
- --target=Deployment/kube-dns
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"preventSinglePointFailure":true}}
- --logtostderr=true
- --v=2
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.1.1
imagePullPolicy: IfNotPresent
name: autoscaler
resources:
requests:
cpu: 20m
memory: 10Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
status:
availableReplicas: 1
fullyLabeledReplicas: 1
observedGeneration: 1
readyReplicas: 1
replicas: 1
- apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
annotations:
deployment.kubernetes.io/desired-replicas: "1"
deployment.kubernetes.io/max-replicas: "2"
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2017-03-21T01:41:55Z
generation: 1
labels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "2715466192"
name: kube-dns-autoscaler-2715466192
namespace: kube-system
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: Deployment
name: kube-dns-autoscaler
uid: 90e4ba36-0dd7-11e7-89a5-42010a800003
resourceVersion: "10195"
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/replicasets/kube-dns-autoscaler-2715466192
uid: 90e5863c-0dd7-11e7-89a5-42010a800003
spec:
replicas: 1
selector:
matchLabels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "2715466192"
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly",
"operator":"Exists"}]'
creationTimestamp: null
labels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "2715466192"
spec:
containers:
- command:
- /cluster-proportional-autoscaler
- --namespace=kube-system
- --configmap=kube-dns-autoscaler
- --mode=linear
- --target=Deployment/kube-dns
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"min":1}}
- --logtostderr=true
- --v=2
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0
imagePullPolicy: IfNotPresent
name: autoscaler
resources:
requests:
cpu: 20m
memory: 10Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
fullyLabeledReplicas: 1
observedGeneration: 1
readyReplicas: 1
replicas: 1
- apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/created-by: |
{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"kube-system","name":"kube-dns-autoscaler-1733107464","uid":"f26f5749-0de6-11e7-9604-42010a800003$
,"apiVersion":"extensions","resourceVersion":"10205"}}
scheduler.alpha.kubernetes.io/critical-pod: ""
creationTimestamp: 2017-03-21T03:32:01Z
generateName: kube-dns-autoscaler-1733107464-
labels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "1733107464"
name: kube-dns-autoscaler-1733107464-36c7g
namespace: kube-system
ownerReferences:
- apiVersion: extensions/v1beta1
controller: true
kind: ReplicaSet
name: kube-dns-autoscaler-1733107464
uid: f26f5749-0de6-11e7-9604-42010a800003
resourceVersion: "10310"
selfLink: /api/v1/namespaces/kube-system/pods/kube-dns-autoscaler-1733107464-36c7g
uid: f2762d0b-0de6-11e7-9604-42010a800003
spec:
containers:
- command:
- /cluster-proportional-autoscaler
- --namespace=kube-system
- --configmap=kube-dns-autoscaler
- --target=Deployment/kube-dns
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"preventSinglePointFailure":true}}
- --logtostderr=true
- --v=2
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.1.1
imagePullPolicy: IfNotPresent
name: autoscaler
resources:
requests:
cpu: 20m
memory: 10Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-7kj47
readOnly: true
dnsPolicy: ClusterFirst
nodeName: kubernetes-minion-group-95sh
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
volumes:
- name: default-token-7kj47
secret:
defaultMode: 420
secretName: default-token-7kj47
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2017-03-21T03:32:02Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2017-03-21T03:32:23Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2017-03-21T03:32:01Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://28c87f60417f9d5d7bf3b3c66808e27942d920da4837af7c6710777373fc0769
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.1.1
imageID: docker://sha256:ff1e9c00bb46d714f38d13fa47cd3cdeb11e97dfe19d46060ccd13219ea5cdce
lastState: {}
name: autoscaler
ready: true
restartCount: 0
state:
running:
startedAt: 2017-03-21T03:32:22Z
hostIP: 10.128.0.4
phase: Running
podIP: 10.244.3.9
startTime: 2017-03-21T03:32:02Z
- apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/created-by: |
{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"kube-system","name":"kube-dns-autoscaler-2715466192","uid":"90e5863c-0dd7-11e7-89a5-42010a800003"
,"apiVersion":"extensions","resourceVersion":"129"}}
scheduler.alpha.kubernetes.io/critical-pod: ""
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
creationTimestamp: 2017-03-21T01:41:55Z
generateName: kube-dns-autoscaler-2715466192-
labels:
k8s-app: kube-dns-autoscaler
pod-template-hash: "2715466192"
name: kube-dns-autoscaler-2715466192-v4r68
namespace: kube-system
ownerReferences:
- apiVersion: extensions/v1beta1
controller: true
kind: ReplicaSet
name: kube-dns-autoscaler-2715466192
uid: 90e5863c-0dd7-11e7-89a5-42010a800003
resourceVersion: "333"
selfLink: /api/v1/namespaces/kube-system/pods/kube-dns-autoscaler-2715466192-v4r68
uid: 90e66276-0dd7-11e7-89a5-42010a800003
spec:
containers:
- command:
- /cluster-proportional-autoscaler
- --namespace=kube-system
- --configmap=kube-dns-autoscaler
- --mode=linear
- --target=Deployment/kube-dns
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"min":1}}
- --logtostderr=true
- --v=2
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0
imagePullPolicy: IfNotPresent
name: autoscaler
resources:
requests:
cpu: 20m
memory: 10Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-7kj47
readOnly: true
dnsPolicy: ClusterFirst
nodeName: kubernetes-minion-group-95sh
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
volumes:
- name: default-token-7kj47
secret:
defaultMode: 420
secretName: default-token-7kj47
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2017-03-21T01:42:58Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2017-03-21T01:43:07Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2017-03-21T01:42:58Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://e7b29388c4161d3d8bef3876ae11b52ba4f69e7d4a538c2d05cdd4959a5b7f0a
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0
imageID: docker://sha256:e183460c484d3ddda51797d29f23e2212f646f40a830b173cbeef81d6f27afed
lastState: {}
name: autoscaler
ready: true
restartCount: 0
state:
running:
startedAt: 2017-03-21T01:43:06Z
hostIP: 10.128.0.4
phase: Running
podIP: 10.244.3.4
startTime: 2017-03-21T01:42:58Z
kind: List
metadata: {}
resourceVersion: ""
selfLink: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment