Skip to content

Instantly share code, notes, and snippets.

@dhellmann
Created November 26, 2019 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhellmann/495c85a3ea420c159c80d0f0007fc1a0 to your computer and use it in GitHub Desktop.
Save dhellmann/495c85a3ea420c159c80d0f0007fc1a0 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
machine.openshift.io/owned: ""
creationTimestamp: "2019-11-11T16:06:00Z"
generation: 1
labels:
api: clusterapi
k8s-app: controller
name: metal3
namespace: openshift-machine-api
resourceVersion: "5653"
selfLink: /apis/extensions/v1beta1/namespaces/openshift-machine-api/deployments/metal3
uid: 1de033ef-a9c3-4c6d-8b27-6bad34c522a2
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
api: clusterapi
k8s-app: controller
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
api: clusterapi
k8s-app: controller
spec:
containers:
- command:
- /baremetal-operator
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: OPERATOR_NAME
value: baremetal-operator
- name: DEPLOY_KERNEL_URL
valueFrom:
configMapKeyRef:
key: deploy_kernel_url
name: metal3-config
- name: DEPLOY_RAMDISK_URL
valueFrom:
configMapKeyRef:
key: deploy_ramdisk_url
name: metal3-config
- name: IRONIC_ENDPOINT
valueFrom:
configMapKeyRef:
key: ironic_endpoint
name: metal3-config
- name: IRONIC_INSPECTOR_ENDPOINT
valueFrom:
configMapKeyRef:
key: ironic_inspector_endpoint
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:c16835b85afc6d2a649089afb75697ffe002629a72a2443896e6a3134d7aa009
imagePullPolicy: IfNotPresent
name: metal3-baremetal-operator
ports:
- containerPort: 60000
hostPort: 60000
name: metrics
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- command:
- /bin/rundnsmasq
env:
- name: HTTP_PORT
valueFrom:
configMapKeyRef:
key: http_port
name: metal3-config
- name: PROVISIONING_INTERFACE
valueFrom:
configMapKeyRef:
key: provisioning_interface
name: metal3-config
- name: DHCP_RANGE
valueFrom:
configMapKeyRef:
key: dhcp_range
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:3083ddf86e3132209d5237ac47ca410f4ecaedc0510c699032047cc4b1c2312a
imagePullPolicy: IfNotPresent
name: metal3-dnsmasq
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- command:
- /bin/runmariadb
env:
- name: MARIADB_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: metal3-mariadb-password
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:3083ddf86e3132209d5237ac47ca410f4ecaedc0510c699032047cc4b1c2312a
imagePullPolicy: IfNotPresent
name: metal3-mariadb
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- command:
- /bin/runhttpd
env:
- name: HTTP_PORT
valueFrom:
configMapKeyRef:
key: http_port
name: metal3-config
- name: PROVISIONING_INTERFACE
valueFrom:
configMapKeyRef:
key: provisioning_interface
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:3083ddf86e3132209d5237ac47ca410f4ecaedc0510c699032047cc4b1c2312a
imagePullPolicy: IfNotPresent
name: metal3-httpd
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- command:
- /bin/runironic-conductor
env:
- name: MARIADB_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: metal3-mariadb-password
- name: HTTP_PORT
valueFrom:
configMapKeyRef:
key: http_port
name: metal3-config
- name: PROVISIONING_INTERFACE
valueFrom:
configMapKeyRef:
key: provisioning_interface
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:3083ddf86e3132209d5237ac47ca410f4ecaedc0510c699032047cc4b1c2312a
imagePullPolicy: IfNotPresent
name: metal3-ironic-conductor
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- command:
- /bin/runironic-api
env:
- name: MARIADB_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: metal3-mariadb-password
- name: HTTP_PORT
valueFrom:
configMapKeyRef:
key: http_port
name: metal3-config
- name: PROVISIONING_INTERFACE
valueFrom:
configMapKeyRef:
key: provisioning_interface
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:3083ddf86e3132209d5237ac47ca410f4ecaedc0510c699032047cc4b1c2312a
imagePullPolicy: IfNotPresent
name: metal3-ironic-api
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- env:
- name: PROVISIONING_INTERFACE
valueFrom:
configMapKeyRef:
key: provisioning_interface
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:9bbca18c3eefa7ca3da01437ee4f033c3b4389f0f8be64a5ea7c930241d54d88
imagePullPolicy: IfNotPresent
name: metal3-ironic-inspector
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- command:
- /refresh-static-ip
env:
- name: PROVISIONING_IP
valueFrom:
configMapKeyRef:
key: provisioning_ip
name: metal3-config
- name: PROVISIONING_INTERFACE
valueFrom:
configMapKeyRef:
key: provisioning_interface
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:9e86cfda5e0091a955a7c0cf25b24e8ce9097c0ba6ea9e8bca1a15183b3ef015
imagePullPolicy: IfNotPresent
name: metal3-static-ip-manager
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
hostNetwork: true
initContainers:
- command:
- /usr/local/bin/get-resource.sh
env:
- name: CACHEURL
valueFrom:
configMapKeyRef:
key: cache_url
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:751bd2f7aca3c54fa5ff816384a5f5a66bceb03899dc506838ab19abca34e63c
imagePullPolicy: IfNotPresent
name: metal3-ipa-downloader
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- command:
- /usr/local/bin/get-resource.sh
env:
- name: RHCOS_IMAGE_URL
valueFrom:
configMapKeyRef:
key: rhcos_image_url
name: metal3-config
- name: CACHEURL
valueFrom:
configMapKeyRef:
key: cache_url
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:3b1f2e50d4e3c4319e02dc721acd292e853a26009c21fdfd2c487c70e2ae3445
imagePullPolicy: IfNotPresent
name: metal3-rhcos-downloader
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /shared
name: metal3-shared
- command:
- /set-static-ip
env:
- name: PROVISIONING_IP
valueFrom:
configMapKeyRef:
key: provisioning_ip
name: metal3-config
- name: PROVISIONING_INTERFACE
valueFrom:
configMapKeyRef:
key: provisioning_interface
name: metal3-config
image: registry.svc.ci.openshift.org/ocp/4.3-2019-11-11-125929@sha256:9e86cfda5e0091a955a7c0cf25b24e8ce9097c0ba6ea9e8bca1a15183b3ef015
imagePullPolicy: IfNotPresent
name: metal3-static-ip-set
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
nodeSelector:
node-role.kubernetes.io/master: ""
priorityClassName: system-node-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
runAsNonRoot: false
serviceAccount: machine-api-controllers
serviceAccountName: machine-api-controllers
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 120
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 120
volumes:
- emptyDir: {}
name: metal3-shared
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2019-11-11T16:07:23Z"
lastUpdateTime: "2019-11-11T16:07:23Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2019-11-11T16:06:00Z"
lastUpdateTime: "2019-11-11T16:07:23Z"
message: ReplicaSet "metal3-68d9b4b98b" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment