Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tnozicka/a33e7cb213bc386071df07934b2edc1b to your computer and use it in GitHub Desktop.
Save tnozicka/a33e7cb213bc386071df07934b2edc1b to your computer and use it in GitHub Desktop.
apiVersion: v1
items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2017-08-18T16:10:29Z
generation: 1
labels:
app: ruby-istag
name: ruby-istag
namespace: test
resourceVersion: "2050"
selfLink: /apis/extensions/v1beta1/namespaces/test/deployments/ruby-istag
uid: c1369d93-842f-11e7-aea0-2ec7c4a18a65
spec:
replicas: 1
selector:
matchLabels:
app: ruby-istag
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: ruby-istag
spec:
containers:
- command:
- tail
- -f
- /dev/null
image: 172.30.1.178:5000/test/ruby:2.3
imagePullPolicy: IfNotPresent
name: ruby-istag
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 5
status: {}
- 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-08-18T16:10:29Z
generation: 1
labels:
app: ruby-istag
pod-template-hash: "418904073"
name: ruby-istag-418904073
namespace: test
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: Deployment
name: ruby-istag
uid: c1369d93-842f-11e7-aea0-2ec7c4a18a65
resourceVersion: "2062"
selfLink: /apis/extensions/v1beta1/namespaces/test/replicasets/ruby-istag-418904073
uid: c1382cbf-842f-11e7-aea0-2ec7c4a18a65
spec:
replicas: 1
selector:
matchLabels:
app: ruby-istag
pod-template-hash: "418904073"
template:
metadata:
creationTimestamp: null
labels:
app: ruby-istag
pod-template-hash: "418904073"
spec:
containers:
- command:
- tail
- -f
- /dev/null
image: centos/ruby-23-centos7@sha256:06df436ee1ab911cf5bd6fc296c6296e29c52639b1c8e0209dbcbc227c8cd7e6
imagePullPolicy: IfNotPresent
name: ruby-istag
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 5
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":"test","name":"ruby-istag-418904073","uid":"c1382cbf-842f-11e7-aea0-2ec7c4a18a65","apiVersion":"extensions","resourceVersion":"2048"}}
openshift.io/scc: restricted
creationTimestamp: 2017-08-18T16:10:29Z
generateName: ruby-istag-418904073-
labels:
app: ruby-istag
pod-template-hash: "418904073"
name: ruby-istag-418904073-2zzzn
namespace: test
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: ruby-istag-418904073
uid: c1382cbf-842f-11e7-aea0-2ec7c4a18a65
resourceVersion: "2061"
selfLink: /api/v1/namespaces/test/pods/ruby-istag-418904073-2zzzn
uid: c13ad83e-842f-11e7-aea0-2ec7c4a18a65
spec:
containers:
- command:
- tail
- -f
- /dev/null
image: centos/ruby-23-centos7@sha256:06df436ee1ab911cf5bd6fc296c6296e29c52639b1c8e0209dbcbc227c8cd7e6
imagePullPolicy: IfNotPresent
name: ruby-istag
resources: {}
securityContext:
capabilities:
drop:
- KILL
- MKNOD
- SETGID
- SETUID
- SYS_CHROOT
privileged: false
runAsUser: 1000050000
seLinuxOptions:
level: s0:c7,c4
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-vzjgh
readOnly: true
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: default-dockercfg-nq74w
nodeName: lenovo-t450s
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1000050000
seLinuxOptions:
level: s0:c7,c4
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 5
volumes:
- name: default-token-vzjgh
secret:
defaultMode: 420
secretName: default-token-vzjgh
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2017-08-18T16:10:29Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2017-08-18T16:10:30Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2017-08-18T16:10:29Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://3cd7b6099ce91c52fa9472f47ff2c23dfeaef03a88f709091fc2a6fb773efb01
image: 172.30.143.51:5000/test/ruby:2.3
imageID: docker-pullable://172.30.143.51:5000/test/ruby@sha256:06df436ee1ab911cf5bd6fc296c6296e29c52639b1c8e0209dbcbc227c8cd7e6
lastState: {}
name: ruby-istag
ready: true
restartCount: 0
state:
running:
startedAt: 2017-08-18T16:10:30Z
hostIP: 172.16.20.152
phase: Running
podIP: 172.17.0.2
qosClass: BestEffort
startTime: 2017-08-18T16:10:29Z
kind: List
metadata: {}
resourceVersion: ""
selfLink: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment