Skip to content

Instantly share code, notes, and snippets.

@kahou82
Created June 28, 2021 23:29
Show Gist options
  • Save kahou82/533e3aae2a0d32a90767369f0f34c057 to your computer and use it in GitHub Desktop.
Save kahou82/533e3aae2a0d32a90767369f0f34c057 to your computer and use it in GitHub Desktop.
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2021-06-28T20:00:20Z"
generateName: metrics-server-86cbb8457f-
labels:
k8s-app: metrics-server
pod-template-hash: 86cbb8457f
name: metrics-server-86cbb8457f-wrbcg
namespace: kube-system
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: metrics-server-86cbb8457f
uid: 253a0971-b81c-42ba-aa4c-7b2dcb8136be
resourceVersion: "7016"
uid: 1a9e7cdf-5961-4245-9c0f-0102f4b9be06
spec:
containers:
- image: rancher/metrics-server:v0.3.6
imagePullPolicy: IfNotPresent
name: metrics-server
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp
name: tmp-dir
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-52568
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: ip-10-0-1-29
preemptionPolicy: PreemptLowerPriority
priority: 2000001000
priorityClassName: system-node-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: metrics-server
serviceAccountName: metrics-server
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- emptyDir: {}
name: tmp-dir
- name: kube-api-access-52568
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
items:
- key: ca.crt
path: ca.crt
name: kube-root-ca.crt
- downwardAPI:
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
path: namespace
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2021-06-28T20:00:20Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2021-06-28T23:26:32Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2021-06-28T23:26:32Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2021-06-28T20:00:20Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://19df5554612916ffe9dd0a99b16a8cd7710d04e35647981f7e4e44ede7005144
image: rancher/metrics-server:v0.3.6
imageID: docker-pullable://rancher/metrics-server@sha256:b85628b103169d7db52a32a48b46d8942accb7bde3709c0a4888a23d035f9f1e
lastState: {}
name: metrics-server
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2021-06-28T23:26:32Z"
hostIP: 10.0.2.136
phase: Running
podIP: 10.42.0.4
podIPs:
- ip: 10.42.0.4
qosClass: BestEffort
startTime: "2021-06-28T20:00:20Z"
- apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2021-06-28T20:00:20Z"
generateName: local-path-provisioner-5ff76fc89d-
labels:
app: local-path-provisioner
pod-template-hash: 5ff76fc89d
name: local-path-provisioner-5ff76fc89d-rqhzl
namespace: kube-system
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: local-path-provisioner-5ff76fc89d
uid: 3c266687-4dca-49f8-9248-877d17f94d4f
resourceVersion: "7057"
uid: 757de625-f144-4083-8553-b2b01e27727a
spec:
containers:
- command:
- local-path-provisioner
- start
- --config
- /etc/config/config.json
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: rancher/local-path-provisioner:v0.0.19
imagePullPolicy: IfNotPresent
name: local-path-provisioner
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/config/
name: config-volume
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-f5zvb
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: ip-10-0-1-29
preemptionPolicy: PreemptLowerPriority
priority: 2000001000
priorityClassName: system-node-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: local-path-provisioner-service-account
serviceAccountName: local-path-provisioner-service-account
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- configMap:
defaultMode: 420
name: local-path-config
name: config-volume
- name: kube-api-access-f5zvb
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
items:
- key: ca.crt
path: ca.crt
name: kube-root-ca.crt
- downwardAPI:
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
path: namespace
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2021-06-28T20:00:20Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2021-06-28T23:27:24Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2021-06-28T23:27:24Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2021-06-28T20:00:20Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://3b3326fe56841f859be40876f26d8ab7d561728f6cfef27e971ef8a07921456b
image: rancher/local-path-provisioner:v0.0.19
imageID: docker-pullable://rancher/local-path-provisioner@sha256:9666b1635fec95d4e2251661e135c90678b8f45fd0f8324c55db99c80e2a958c
lastState: {}
name: local-path-provisioner
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2021-06-28T23:27:23Z"
hostIP: 10.0.2.136
phase: Running
podIP: 10.42.0.5
podIPs:
- ip: 10.42.0.5
qosClass: BestEffort
startTime: "2021-06-28T20:00:20Z"
- apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2021-06-28T20:00:20Z"
generateName: coredns-7448499f4d-
labels:
k8s-app: kube-dns
pod-template-hash: 7448499f4d
name: coredns-7448499f4d-gqgwf
namespace: kube-system
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: coredns-7448499f4d
uid: 0d1aea07-e393-4b27-875e-bb28fc2cc2ea
resourceVersion: "7123"
uid: 9909606a-c9fb-4399-8280-0d63f2904e7b
spec:
containers:
- args:
- -conf
- /etc/coredns/Corefile
image: rancher/coredns-coredns:1.8.3
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 8080
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: coredns
ports:
- containerPort: 53
name: dns
protocol: UDP
- containerPort: 53
name: dns-tcp
protocol: TCP
- containerPort: 9153
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /ready
port: 8181
scheme: HTTP
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 170Mi
requests:
cpu: 100m
memory: 70Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- NET_BIND_SERVICE
drop:
- all
readOnlyRootFilesystem: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/coredns
name: config-volume
readOnly: true
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-bf42d
readOnly: true
dnsPolicy: Default
enableServiceLinks: true
nodeName: ip-10-0-1-29
nodeSelector:
beta.kubernetes.io/os: linux
preemptionPolicy: PreemptLowerPriority
priority: 2000000000
priorityClassName: system-cluster-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: coredns
serviceAccountName: coredns
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- configMap:
defaultMode: 420
items:
- key: Corefile
path: Corefile
- key: NodeHosts
path: NodeHosts
name: coredns
name: config-volume
- name: kube-api-access-bf42d
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
items:
- key: ca.crt
path: ca.crt
name: kube-root-ca.crt
- downwardAPI:
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
path: namespace
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2021-06-28T20:00:21Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2021-06-28T23:27:45Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2021-06-28T23:27:45Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2021-06-28T20:00:20Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://cc589b34ffa6515293ea7c154eb231e4e40ba4fd5d53691def50b872c4d59e97
image: rancher/coredns-coredns:1.8.3
imageID: docker-pullable://rancher/coredns-coredns@sha256:cd0f6ef34a9ee6145c0bcbc0a4511a04f81dc2c91582140f0f0250be834b5f27
lastState: {}
name: coredns
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2021-06-28T23:27:45Z"
hostIP: 10.0.2.136
phase: Running
podIP: 10.42.0.2
podIPs:
- ip: 10.42.0.2
qosClass: Burstable
startTime: "2021-06-28T20:00:21Z"
kind: List
metadata:
resourceVersion: ""
selfLink: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment