Skip to content

Instantly share code, notes, and snippets.

@yujunz
Created March 25, 2019 05:40
Show Gist options
  • Save yujunz/d9aa0dc4bb36f0ff98e74d0b029e7b2a to your computer and use it in GitHub Desktop.
Save yujunz/d9aa0dc4bb36f0ff98e74d0b029e7b2a to your computer and use it in GitHub Desktop.
Deployment YAML out example
apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/limit-ranger: 'LimitRanger plugin set: cpu request for container
nginx'
creationTimestamp: 2019-03-25T03:11:54Z
generateName: nginx-56f766d96f-
labels:
app: nginx
pod-template-hash: "1293228529"
name: nginx-56f766d96f-gz8nj
namespace: default
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: nginx-56f766d96f
uid: bdc828c4-4eab-11e9-a493-06b18ed199b8
resourceVersion: "24879748"
selfLink: /api/v1/namespaces/default/pods/nginx-56f766d96f-gz8nj
uid: bdcb24a6-4eab-11e9-a493-06b18ed199b8
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
resources:
requests:
cpu: 100m
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-m6st8
readOnly: true
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: awsecr-cred
nodeName: ip-10-160-56-52.us-west-1.compute.internal
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- name: default-token-m6st8
secret:
defaultMode: 420
secretName: default-token-m6st8
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2019-03-25T03:11:54Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2019-03-25T03:11:56Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2019-03-25T03:11:54Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://d557a28b009adf89b5720790db768e61f6ae04a7ef8ea5578d069a12f8a1dc6f
image: nginx:latest
imageID: docker-pullable://nginx@sha256:98efe605f61725fd817ea69521b0eeb32bef007af0e3d0aeb6258c6e6fe7fc1a
lastState: {}
name: nginx
ready: true
restartCount: 0
state:
running:
startedAt: 2019-03-25T03:11:56Z
hostIP: 10.160.56.52
phase: Running
podIP: 100.100.110.199
qosClass: Burstable
startTime: 2019-03-25T03:11:54Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment