Skip to content

Instantly share code, notes, and snippets.

@rabellamy
Last active November 25, 2018 20:15
Show Gist options
  • Save rabellamy/c4bc28dffdc634c7ff383056ebdf43cf to your computer and use it in GitHub Desktop.
Save rabellamy/c4bc28dffdc634c7ff383056ebdf43cf to your computer and use it in GitHub Desktop.
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
creationTimestamp: 2018-11-25T20:09:51Z
generateName: atlantic-5f945bbdbf-
labels:
app: atlantic
pod-template-hash: "1950166869"
tier: backend
name: atlantic-5f945bbdbf-wqxnd
namespace: atlantic
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: atlantic-5f945bbdbf
uid: 1128a881-f0ee-11e8-88a1-0800274f53ec
resourceVersion: "3743"
selfLink: /api/v1/namespaces/atlantic/pods/atlantic-5f945bbdbf-wqxnd
uid: 112abd5d-f0ee-11e8-88a1-0800274f53ec
spec:
containers:
- env:
- name: DSN
value: root:root@tcp(127.0.0.1:3306)/
image: atlantic/backend:latest
imagePullPolicy: IfNotPresent
name: atlantic
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-p4bh5
readOnly: true
- env:
- name: MYSQL_ROOT_PASSWORD
value: root
image: mysql:5.6
imagePullPolicy: IfNotPresent
name: mysql
ports:
- containerPort: 3306
name: mysql
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mysql
name: atlantic-data
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-p4bh5
readOnly: true
dnsPolicy: ClusterFirst
nodeName: minikube
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: atlantic-data
persistentVolumeClaim:
claimName: atlantic
- name: default-token-p4bh5
secret:
defaultMode: 420
secretName: default-token-p4bh5
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2018-11-25T20:09:51Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2018-11-25T20:10:17Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2018-11-25T20:09:51Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://f6e4bb9054bad05329bfac57c369a157f7876bb2244971f2dd94f4aa34ddd339
image: atlantic/backend:latest
imageID: docker://sha256:42707d543aed21ce4a0b413be0963372e3ab6dd0dde0567b500d5de812b6d969
lastState:
terminated:
containerID: docker://e5eb147bcaa6d0442e4080d72f24bf12cd48b6a35968635a08fac1ae2c486a0f
exitCode: 2
finishedAt: 2018-11-25T20:09:57Z
reason: Error
startedAt: 2018-11-25T20:09:57Z
name: atlantic
ready: true
restartCount: 2
state:
running:
startedAt: 2018-11-25T20:10:16Z
- containerID: docker://d3b2a0896f794d9f26ecccb9d8516345d94bf1dde191389e2a6b918150dee80d
image: mysql:5.6
imageID: docker-pullable://mysql@sha256:9e4754be7edf813fed12f9283e86678694da71b0a7d4fefe082dfb9020a3ac99
lastState: {}
name: mysql
ready: true
restartCount: 0
state:
running:
startedAt: 2018-11-25T20:09:52Z
hostIP: 10.0.2.15
phase: Running
podIP: 172.17.0.9
qosClass: Burstable
startTime: 2018-11-25T20:09:51Z
- apiVersion: v1
kind: Pod
metadata:
creationTimestamp: 2018-11-25T20:09:51Z
generateName: frontend-688465c994-
labels:
app: atlantic
pod-template-hash: "2440217550"
tier: frontend
name: frontend-688465c994-4lbmx
namespace: atlantic
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: frontend-688465c994
uid: 11193ee0-f0ee-11e8-88a1-0800274f53ec
resourceVersion: "3702"
selfLink: /api/v1/namespaces/atlantic/pods/frontend-688465c994-4lbmx
uid: 111baf24-f0ee-11e8-88a1-0800274f53ec
spec:
containers:
- image: atlantic/ui:latest
imagePullPolicy: IfNotPresent
name: frontend
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-p4bh5
readOnly: true
dnsPolicy: ClusterFirst
nodeName: minikube
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-p4bh5
secret:
defaultMode: 420
secretName: default-token-p4bh5
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2018-11-25T20:09:51Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2018-11-25T20:09:54Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2018-11-25T20:09:51Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://4c026e2a3d5a101425b816debfdc17c02cbf864c2ad106e89ecabae4ec801a4e
image: atlantic/ui:latest
imageID: docker://sha256:33862e53749586917f2bc099f85743e683242f2973f0f0997b4d5c2c80ddbf84
lastState: {}
name: frontend
ready: true
restartCount: 0
state:
running:
startedAt: 2018-11-25T20:09:52Z
hostIP: 10.0.2.15
phase: Running
podIP: 172.17.0.8
qosClass: Guaranteed
startTime: 2018-11-25T20:09:51Z
- apiVersion: v1
kind: Service
metadata:
creationTimestamp: 2018-11-25T20:09:51Z
labels:
chart: atlantic-0.1.0
name: atlantic
namespace: atlantic
resourceVersion: "3648"
selfLink: /api/v1/namespaces/atlantic/services/atlantic
uid: 1109efda-f0ee-11e8-88a1-0800274f53ec
spec:
clusterIP: 10.107.66.0
ports:
- name: backend
port: 80
protocol: TCP
targetPort: 8080
selector:
app: atlantic
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
creationTimestamp: 2018-11-25T20:09:51Z
labels:
chart: atlantic-0.1.0
name: frontend
namespace: atlantic
resourceVersion: "3654"
selfLink: /api/v1/namespaces/atlantic/services/frontend
uid: 1114ac16-f0ee-11e8-88a1-0800274f53ec
spec:
clusterIP: 10.100.151.58
externalTrafficPolicy: Cluster
ports:
- name: backend
nodePort: 31373
port: 80
protocol: TCP
targetPort: 80
selector:
app: atlantic
tier: frontend
sessionAffinity: None
type: NodePort
status:
loadBalancer: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2018-11-25T20:09:51Z
generation: 1
labels:
chart: atlantic-0.1.0
name: atlantic
namespace: atlantic
resourceVersion: "3746"
selfLink: /apis/apps/v1/namespaces/atlantic/deployments/atlantic
uid: 11276bc6-f0ee-11e8-88a1-0800274f53ec
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: atlantic
tier: backend
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: atlantic
tier: backend
spec:
containers:
- env:
- name: DSN
value: root:root@tcp(127.0.0.1:3306)/
image: atlantic/backend:latest
imagePullPolicy: IfNotPresent
name: atlantic
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- env:
- name: MYSQL_ROOT_PASSWORD
value: root
image: mysql:5.6
imagePullPolicy: IfNotPresent
name: mysql
ports:
- containerPort: 3306
name: mysql
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mysql
name: atlantic-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: atlantic-data
persistentVolumeClaim:
claimName: atlantic
status:
availableReplicas: 1
conditions:
- lastTransitionTime: 2018-11-25T20:09:51Z
lastUpdateTime: 2018-11-25T20:09:51Z
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: 2018-11-25T20:09:51Z
lastUpdateTime: 2018-11-25T20:10:17Z
message: ReplicaSet "atlantic-5f945bbdbf" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2018-11-25T20:09:51Z
generation: 1
labels:
chart: atlantic-0.1.0
name: frontend
namespace: atlantic
resourceVersion: "3712"
selfLink: /apis/apps/v1/namespaces/atlantic/deployments/frontend
uid: 11171ba7-f0ee-11e8-88a1-0800274f53ec
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: atlantic
tier: frontend
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: atlantic
tier: frontend
spec:
containers:
- image: atlantic/ui:latest
imagePullPolicy: IfNotPresent
name: frontend
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: 2018-11-25T20:09:51Z
lastUpdateTime: 2018-11-25T20:09:51Z
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: 2018-11-25T20:09:51Z
lastUpdateTime: 2018-11-25T20:10:00Z
message: ReplicaSet "frontend-688465c994" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
- apiVersion: apps/v1
kind: ReplicaSet
metadata:
annotations:
deployment.kubernetes.io/desired-replicas: "1"
deployment.kubernetes.io/max-replicas: "2"
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2018-11-25T20:09:51Z
generation: 1
labels:
app: atlantic
pod-template-hash: "1950166869"
tier: backend
name: atlantic-5f945bbdbf
namespace: atlantic
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: Deployment
name: atlantic
uid: 11276bc6-f0ee-11e8-88a1-0800274f53ec
resourceVersion: "3744"
selfLink: /apis/apps/v1/namespaces/atlantic/replicasets/atlantic-5f945bbdbf
uid: 1128a881-f0ee-11e8-88a1-0800274f53ec
spec:
replicas: 1
selector:
matchLabels:
app: atlantic
pod-template-hash: "1950166869"
tier: backend
template:
metadata:
creationTimestamp: null
labels:
app: atlantic
pod-template-hash: "1950166869"
tier: backend
spec:
containers:
- env:
- name: DSN
value: root:root@tcp(127.0.0.1:3306)/
image: atlantic/backend:latest
imagePullPolicy: IfNotPresent
name: atlantic
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- env:
- name: MYSQL_ROOT_PASSWORD
value: root
image: mysql:5.6
imagePullPolicy: IfNotPresent
name: mysql
ports:
- containerPort: 3306
name: mysql
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mysql
name: atlantic-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: atlantic-data
persistentVolumeClaim:
claimName: atlantic
status:
availableReplicas: 1
fullyLabeledReplicas: 1
observedGeneration: 1
readyReplicas: 1
replicas: 1
- apiVersion: apps/v1
kind: ReplicaSet
metadata:
annotations:
deployment.kubernetes.io/desired-replicas: "1"
deployment.kubernetes.io/max-replicas: "2"
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2018-11-25T20:09:51Z
generation: 1
labels:
app: atlantic
pod-template-hash: "2440217550"
tier: frontend
name: frontend-688465c994
namespace: atlantic
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: Deployment
name: frontend
uid: 11171ba7-f0ee-11e8-88a1-0800274f53ec
resourceVersion: "3705"
selfLink: /apis/apps/v1/namespaces/atlantic/replicasets/frontend-688465c994
uid: 11193ee0-f0ee-11e8-88a1-0800274f53ec
spec:
replicas: 1
selector:
matchLabels:
app: atlantic
pod-template-hash: "2440217550"
tier: frontend
template:
metadata:
creationTimestamp: null
labels:
app: atlantic
pod-template-hash: "2440217550"
tier: frontend
spec:
containers:
- image: atlantic/ui:latest
imagePullPolicy: IfNotPresent
name: frontend
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
fullyLabeledReplicas: 1
observedGeneration: 1
readyReplicas: 1
replicas: 1
kind: List
metadata:
resourceVersion: ""
selfLink: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment