Skip to content

Instantly share code, notes, and snippets.

@welshstew
Created September 26, 2022 15:34
Show Gist options
  • Save welshstew/cc64fbadd5487c3ff91ed758774f88f7 to your computer and use it in GitHub Desktop.
Save welshstew/cc64fbadd5487c3ff91ed758774f88f7 to your computer and use it in GitHub Desktop.
kind: Deployment
apiVersion: apps/v1
metadata:
annotations:
deployment.kubernetes.io/revision: '5'
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"helloworld-nodejs:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"helloworld-nodejs\")].image"}]
openshift.io/generated-by: OpenShiftNewApp
resourceVersion: '78454'
name: helloworld-nodejs
uid: 50f8fb3d-47ed-470b-bf27-971da0366ea3
creationTimestamp: '2022-09-26T12:29:14Z'
generation: 5
managedFields:
- manager: oc
operation: Update
apiVersion: apps/v1
time: '2022-09-26T12:29:14Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:image.openshift.io/triggers': {}
'f:openshift.io/generated-by': {}
'f:labels':
.: {}
'f:app': {}
'f:app.kubernetes.io/component': {}
'f:app.kubernetes.io/instance': {}
'f:spec':
'f:progressDeadlineSeconds': {}
'f:replicas': {}
'f:revisionHistoryLimit': {}
'f:selector': {}
'f:strategy':
'f:rollingUpdate':
.: {}
'f:maxSurge': {}
'f:maxUnavailable': {}
'f:type': {}
'f:template':
'f:metadata':
'f:annotations':
.: {}
'f:openshift.io/generated-by': {}
'f:labels':
.: {}
'f:deployment': {}
'f:spec':
'f:containers':
'k:{"name":"helloworld-nodejs"}':
.: {}
'f:imagePullPolicy': {}
'f:name': {}
'f:resources': {}
'f:terminationMessagePath': {}
'f:terminationMessagePolicy': {}
'f:dnsPolicy': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext': {}
'f:terminationGracePeriodSeconds': {}
- manager: openshift-controller-manager
operation: Update
apiVersion: apps/v1
time: '2022-09-26T12:29:15Z'
fieldsType: FieldsV1
fieldsV1:
'f:spec':
'f:template':
'f:spec':
'f:containers':
'k:{"name":"helloworld-nodejs"}':
'f:image': {}
- manager: Mozilla
operation: Update
apiVersion: apps/v1
time: '2022-09-26T14:17:55Z'
fieldsType: FieldsV1
fieldsV1:
'f:spec':
'f:template':
'f:spec':
'f:containers':
'k:{"name":"helloworld-nodejs"}':
'f:ports':
.: {}
'k:{"containerPort":8080,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:protocol': {}
'k:{"name":"nginx-sidecar"}':
'f:image': {}
'f:volumeMounts':
.: {}
'k:{"mountPath":"/etc/pki/nginx/"}':
.: {}
'f:mountPath': {}
'f:name': {}
'f:terminationMessagePolicy': {}
.: {}
'f:resources': {}
'f:terminationMessagePath': {}
'f:imagePullPolicy': {}
'f:ports':
.: {}
'k:{"containerPort":8443,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:protocol': {}
'f:name': {}
'f:volumes':
.: {}
'k:{"name":"nginx-certs"}':
.: {}
'f:name': {}
'f:secret':
.: {}
'f:defaultMode': {}
'f:secretName': {}
- manager: kube-controller-manager
operation: Update
apiVersion: apps/v1
time: '2022-09-26T14:51:20Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
'f:deployment.kubernetes.io/revision': {}
'f:status':
'f:availableReplicas': {}
'f:conditions':
.: {}
'k:{"type":"Available"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'k:{"type":"Progressing"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'f:observedGeneration': {}
'f:readyReplicas': {}
'f:replicas': {}
'f:updatedReplicas': {}
subresource: status
namespace: sidecar
labels:
app: helloworld-nodejs
app.kubernetes.io/component: helloworld-nodejs
app.kubernetes.io/instance: helloworld-nodejs
spec:
replicas: 1
selector:
matchLabels:
deployment: helloworld-nodejs
template:
metadata:
creationTimestamp: null
labels:
deployment: helloworld-nodejs
annotations:
openshift.io/generated-by: OpenShiftNewApp
spec:
volumes:
- name: nginx-certs
secret:
secretName: nginx-certs
defaultMode: 420
containers:
- name: helloworld-nodejs
image: >-
quay.io/swinches/helloworld-nodejs@sha256:da11509c1b8432077caee449042001d755c050ab33eb8cc110424602b09f8543
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
- name: nginx-sidecar
image: >-
image-registry.openshift-image-registry.svc:5000/sidecar/simple-nginx-ssl-reverseproxy:test
ports:
- containerPort: 8443
protocol: TCP
resources: {}
volumeMounts:
- name: nginx-certs
mountPath: /etc/pki/nginx/
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
status:
observedGeneration: 5
replicas: 1
updatedReplicas: 1
readyReplicas: 1
availableReplicas: 1
conditions:
- type: Available
status: 'True'
lastUpdateTime: '2022-09-26T14:51:20Z'
lastTransitionTime: '2022-09-26T14:51:20Z'
reason: MinimumReplicasAvailable
message: Deployment has minimum availability.
- type: Progressing
status: 'True'
lastUpdateTime: '2022-09-26T14:51:20Z'
lastTransitionTime: '2022-09-26T12:29:14Z'
reason: NewReplicaSetAvailable
message: ReplicaSet "helloworld-nodejs-7bbf859cd7" has successfully progressed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment