Skip to content

Instantly share code, notes, and snippets.

@vpavlin
Created September 1, 2021 13:33
Show Gist options
  • Save vpavlin/ef3c8e83ca1cfbe474921b7dc4cee069 to your computer and use it in GitHub Desktop.
Save vpavlin/ef3c8e83ca1cfbe474921b7dc4cee069 to your computer and use it in GitHub Desktop.
kind: Pod
apiVersion: v1
metadata:
generateName: vpavlin-test-1-
annotations:
alpha.image.policy.openshift.io/resolve-names: '*'
k8s.v1.cni.cncf.io/network-status: |-
[{
"name": "openshift-sdn",
"interface": "eth0",
"ips": [
"10.128.2.124"
],
"default": true,
"dns": {}
}]
k8s.v1.cni.cncf.io/networks-status: |-
[{
"name": "openshift-sdn",
"interface": "eth0",
"ips": [
"10.128.2.124"
],
"default": true,
"dns": {}
}]
kubernetes.io/limit-ranger: >-
LimitRanger plugin set: cpu, memory request for container httpd; cpu,
memory limit for container httpd
openshift.io/deployment-config.latest-version: '1'
openshift.io/deployment-config.name: vpavlin-test
openshift.io/deployment.name: vpavlin-test-1
openshift.io/scc: restricted
resourceVersion: '475274'
name: vpavlin-test-1-gk229
uid: c9eb11a4-2b28-46de-bbab-c8d360a98502
creationTimestamp: '2021-09-01T13:31:35Z'
managedFields:
- manager: kube-controller-manager
operation: Update
apiVersion: v1
time: '2021-09-01T13:31:35Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:alpha.image.policy.openshift.io/resolve-names': {}
'f:openshift.io/deployment-config.latest-version': {}
'f:openshift.io/deployment-config.name': {}
'f:openshift.io/deployment.name': {}
'f:generateName': {}
'f:labels':
.: {}
'f:app': {}
'f:deployment': {}
'f:deploymentconfig': {}
'f:ownerReferences':
.: {}
'k:{"uid":"b9cc1566-d8fd-4a69-a8ad-ffd1562158d7"}':
.: {}
'f:apiVersion': {}
'f:blockOwnerDeletion': {}
'f:controller': {}
'f:kind': {}
'f:name': {}
'f:uid': {}
'f:spec':
'f:containers':
'k:{"name":"httpd"}':
.: {}
'f:image': {}
'f:imagePullPolicy': {}
'f:name': {}
'f:ports':
.: {}
'k:{"containerPort":8080,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:protocol': {}
'f:resources':
.: {}
'f:limits':
'f:cpu': {}
'f:memory': {}
'f:requests':
'f:cpu': {}
'f:memory': {}
'f:terminationMessagePath': {}
'f:terminationMessagePolicy': {}
'f:dnsPolicy': {}
'f:enableServiceLinks': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext':
.: {}
'f:fsGroup': {}
'f:seLinuxOptions':
'f:level': {}
'f:terminationGracePeriodSeconds': {}
- manager: multus
operation: Update
apiVersion: v1
time: '2021-09-01T13:31:37Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
'f:k8s.v1.cni.cncf.io/network-status': {}
'f:k8s.v1.cni.cncf.io/networks-status': {}
- manager: kubelet
operation: Update
apiVersion: v1
time: '2021-09-01T13:31:39Z'
fieldsType: FieldsV1
fieldsV1:
'f:status':
'f:conditions':
'k:{"type":"ContainersReady"}':
.: {}
'f:lastProbeTime': {}
'f:lastTransitionTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'k:{"type":"Initialized"}':
.: {}
'f:lastProbeTime': {}
'f:lastTransitionTime': {}
'f:status': {}
'f:type': {}
'k:{"type":"Ready"}':
.: {}
'f:lastProbeTime': {}
'f:lastTransitionTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'f:containerStatuses': {}
'f:hostIP': {}
'f:podIP': {}
'f:podIPs':
.: {}
'k:{"ip":"10.128.2.124"}':
.: {}
'f:ip': {}
'f:startTime': {}
namespace: vpavlin-test
ownerReferences:
- apiVersion: v1
kind: ReplicationController
name: vpavlin-test-1
uid: b9cc1566-d8fd-4a69-a8ad-ffd1562158d7
controller: true
blockOwnerDeletion: true
labels:
app: httpd
deployment: vpavlin-test-1
deploymentconfig: vpavlin-test
spec:
restartPolicy: Always
serviceAccountName: default
imagePullSecrets:
- name: default-dockercfg-sgllq
priority: 0
schedulerName: default-scheduler
enableServiceLinks: true
terminationGracePeriodSeconds: 30
preemptionPolicy: PreemptLowerPriority
nodeName: ip-10-0-186-63.us-east-2.compute.internal
securityContext:
seLinuxOptions:
level: 's0:c25,c15'
fsGroup: 1000630000
containers:
- resources:
limits:
cpu: 500m
memory: 1536Mi
requests:
cpu: 50m
memory: 256Mi
terminationMessagePath: /dev/termination-log
name: httpd
securityContext:
capabilities:
drop:
- KILL
- MKNOD
- SETGID
- SETUID
runAsUser: 1000630000
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: kube-api-access-8rtrl
readOnly: true
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
terminationMessagePolicy: File
image: 'vpavlin-test:latest'
serviceAccount: default
volumes:
- name: kube-api-access-8rtrl
projected:
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
name: kube-root-ca.crt
items:
- key: ca.crt
path: ca.crt
- downwardAPI:
items:
- path: namespace
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- configMap:
name: openshift-service-ca.crt
items:
- key: service-ca.crt
path: service-ca.crt
defaultMode: 420
dnsPolicy: ClusterFirst
tolerations:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.kubernetes.io/memory-pressure
operator: Exists
effect: NoSchedule
status:
phase: Pending
conditions:
- type: Initialized
status: 'True'
lastProbeTime: null
lastTransitionTime: '2021-09-01T13:31:35Z'
- type: Ready
status: 'False'
lastProbeTime: null
lastTransitionTime: '2021-09-01T13:31:35Z'
reason: ContainersNotReady
message: 'containers with unready status: [httpd]'
- type: ContainersReady
status: 'False'
lastProbeTime: null
lastTransitionTime: '2021-09-01T13:31:35Z'
reason: ContainersNotReady
message: 'containers with unready status: [httpd]'
- type: PodScheduled
status: 'True'
lastProbeTime: null
lastTransitionTime: '2021-09-01T13:31:35Z'
hostIP: 10.0.186.63
podIP: 10.128.2.124
podIPs:
- ip: 10.128.2.124
startTime: '2021-09-01T13:31:35Z'
containerStatuses:
- name: httpd
state:
waiting:
reason: ImagePullBackOff
message: 'Back-off pulling image "vpavlin-test:latest"'
lastState: {}
ready: false
restartCount: 0
image: 'vpavlin-test:latest'
imageID: ''
started: false
qosClass: Burstable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment