Skip to content

Instantly share code, notes, and snippets.

@kayrus
Last active September 11, 2019 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayrus/8a5956126f08fe974c91f5fb64e2e6a4 to your computer and use it in GitHub Desktop.
Save kayrus/8a5956126f08fe974c91f5fb64e2e6a4 to your computer and use it in GitHub Desktop.
deployment status inconsistency
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: "2019-08-21T16:04:57Z"
generation: 13329
labels:
component: blackbox-exporter
garden.sapcloud.io/role: system-component
origin: gardener
shoot.gardener.cloud/no-cleanup: "true"
name: blackbox-exporter
namespace: kube-system
resourceVersion: "5339205"
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/deployments/blackbox-exporter
uid: 787fcb69-995e-46fc-803c-f24efa2fd1cc
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 0
selector:
matchLabels:
component: blackbox-exporter
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
checksum/configmap-blackbox-exporter-config: 837ab259c403ac736c591b304338d575f29e6d82794e00685e39de9b867ddae9
creationTimestamp: null
labels:
component: blackbox-exporter
garden.sapcloud.io/role: system-component
origin: gardener
shoot.gardener.cloud/no-cleanup: "true"
spec:
containers:
- args:
- --config.file=/etc/blackbox_exporter/blackbox.yaml
image: quay.io/prometheus/blackbox-exporter:v0.13.0
imagePullPolicy: IfNotPresent
name: blackbox-exporter
ports:
- containerPort: 9115
name: probe
protocol: TCP
resources:
limits:
cpu: 10m
memory: 35Mi
requests:
cpu: 5m
memory: 5Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/blackbox_exporter
name: blackbox-exporter-config
dnsConfig:
options:
- name: ndots
value: "3"
dnsPolicy: ClusterFirst
priorityClassName: system-cluster-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 65534
runAsUser: 65534
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- configMap:
defaultMode: 420
name: blackbox-exporter-config
name: blackbox-exporter-config
status:
conditions:
- lastTransitionTime: "2019-08-21T16:05:11Z"
lastUpdateTime: "2019-08-21T16:11:50Z"
message: ReplicaSet "blackbox-exporter-6c4588cfc5" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
- lastTransitionTime: "2019-08-31T23:29:32Z"
lastUpdateTime: "2019-08-31T23:29:32Z"
message: Deployment does not have minimum availability.
reason: MinimumReplicasUnavailable
status: "False"
type: Available
observedGeneration: 13329
replicas: 1
unavailableReplicas: 1
updatedReplicas: 1
apiVersion: v1
kind: Pod
metadata:
annotations:
checksum/configmap-blackbox-exporter-config: 837ab259c403ac736c591b304338d575f29e6d82794e00685e39de9b867ddae9
cni.projectcalico.org/podIP: 100.93.0.7/32
kubernetes.io/psp: gardener.privileged
creationTimestamp: "2019-08-21T16:05:11Z"
generateName: blackbox-exporter-6c4588cfc5-
labels:
component: blackbox-exporter
garden.sapcloud.io/role: system-component
origin: gardener
pod-template-hash: 6c4588cfc5
shoot.gardener.cloud/no-cleanup: "true"
name: blackbox-exporter-6c4588cfc5-lzh2t
namespace: kube-system
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: blackbox-exporter-6c4588cfc5
uid: c99112cd-28ee-4ade-872e-daa7f79fd9a5
resourceVersion: "5339196"
selfLink: /api/v1/namespaces/kube-system/pods/blackbox-exporter-6c4588cfc5-lzh2t
uid: 3a1e49e6-3e21-412c-aefc-280f987429ff
spec:
containers:
- args:
- --config.file=/etc/blackbox_exporter/blackbox.yaml
image: quay.io/prometheus/blackbox-exporter:v0.13.0
imagePullPolicy: IfNotPresent
name: blackbox-exporter
ports:
- containerPort: 9115
name: probe
protocol: TCP
resources:
limits:
cpu: 10m
memory: 35Mi
requests:
cpu: 5m
memory: 5Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/blackbox_exporter
name: blackbox-exporter-config
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-pxr4n
readOnly: true
dnsConfig:
options:
- name: ndots
value: "3"
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: shoot--garden--region1-01-dev-cpu-worker-z1-789b4c7694-nbcdh
priority: 2000000000
priorityClassName: system-cluster-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 65534
runAsUser: 65534
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- configMap:
defaultMode: 420
name: blackbox-exporter-config
name: blackbox-exporter-config
- name: default-token-pxr4n
secret:
defaultMode: 420
secretName: default-token-pxr4n
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2019-08-21T16:09:30Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2019-08-31T23:29:32Z"
status: "False"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2019-08-21T16:11:50Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2019-08-21T16:09:30Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://25cc8d8252b17ba8d2e31764fdd815fe5ca336f238b811826896baa047f7c00f
image: quay.io/prometheus/blackbox-exporter:v0.13.0
imageID: docker-pullable://quay.io/prometheus/blackbox-exporter@sha256:0958c966dca13db9880a55e03221f507a2cf72ccf401b34642bdb0ba739d056f
lastState: {}
name: blackbox-exporter
ready: true
restartCount: 0
state:
running:
startedAt: "2019-08-21T16:11:49Z"
hostIP: 198.18.2.27
phase: Running
podIP: 100.93.0.7
qosClass: Burstable
startTime: "2019-08-21T16:09:30Z"
$ kubectl -n kube-system get rs blackbox-exporter-6c4588cfc5
NAME DESIRED CURRENT READY AGE
blackbox-exporter-6c4588cfc5 1 1 0 20d
$ kubectl -n kube-system get rs blackbox-exporter-6c4588cfc5 -o yaml
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: "2019-08-21T16:05:11Z"
generation: 1
labels:
component: blackbox-exporter
garden.sapcloud.io/role: system-component
origin: gardener
pod-template-hash: 6c4588cfc5
shoot.gardener.cloud/no-cleanup: "true"
name: blackbox-exporter-6c4588cfc5
namespace: kube-system
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: Deployment
name: blackbox-exporter
uid: 787fcb69-995e-46fc-803c-f24efa2fd1cc
resourceVersion: "5339200"
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/replicasets/blackbox-exporter-6c4588cfc5
uid: c99112cd-28ee-4ade-872e-daa7f79fd9a5
spec:
replicas: 1
selector:
matchLabels:
component: blackbox-exporter
pod-template-hash: 6c4588cfc5
template:
metadata:
annotations:
checksum/configmap-blackbox-exporter-config: 837ab259c403ac736c591b304338d575f29e6d82794e00685e39de9b867ddae9
creationTimestamp: null
labels:
component: blackbox-exporter
garden.sapcloud.io/role: system-component
origin: gardener
pod-template-hash: 6c4588cfc5
shoot.gardener.cloud/no-cleanup: "true"
spec:
containers:
- args:
- --config.file=/etc/blackbox_exporter/blackbox.yaml
image: quay.io/prometheus/blackbox-exporter:v0.13.0
imagePullPolicy: IfNotPresent
name: blackbox-exporter
ports:
- containerPort: 9115
name: probe
protocol: TCP
resources:
limits:
cpu: 10m
memory: 35Mi
requests:
cpu: 5m
memory: 5Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/blackbox_exporter
name: blackbox-exporter-config
dnsConfig:
options:
- name: ndots
value: "3"
dnsPolicy: ClusterFirst
priorityClassName: system-cluster-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 65534
runAsUser: 65534
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- configMap:
defaultMode: 420
name: blackbox-exporter-config
name: blackbox-exporter-config
status:
fullyLabeledReplicas: 1
observedGeneration: 1
replicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment