88e648e5ed
Removes the WATCH_NAMESPACE env variable in metal3-baremetal- opearator Deployment to allow the BMO to watch all namespaces. Change-Id: Ifea242dddb4bca1fad33c04a67017fe4528f4c44
60 lines
2.0 KiB
YAML
60 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: metal3-baremetal-operator
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: metal3-baremetal-operator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: metal3-baremetal-operator
|
|
spec:
|
|
tolerations:
|
|
# Mark the pod as a critical add-on for rescheduling.
|
|
- key: CriticalAddonsOnly
|
|
operator: Exists
|
|
- key: node-role.kubernetes.io/master
|
|
effect: NoSchedule
|
|
serviceAccountName: metal3-baremetal-operator
|
|
containers:
|
|
- name: baremetal-operator
|
|
image: "quay.io/metal3-io/baremetal-operator:latest"
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 60000
|
|
name: metrics
|
|
command: ["/bin/sh", "-c"]
|
|
args:
|
|
- |
|
|
export DEPLOY_KERNEL_URL=http://$PROVISIONING_IP:80/$DEPLOY_KERNEL_PATH;
|
|
export DEPLOY_RAMDISK_URL=http://$PROVISIONING_IP:80/$DEPLOY_RAMDISK_PATH;
|
|
export IRONIC_ENDPOINT=http://$PROVISIONING_IP:6385/v1/;
|
|
export IRONIC_INSPECTOR_ENDPOINT=http://$PROVISIONING_IP:5050/v1/;
|
|
/baremetal-operator
|
|
envFrom:
|
|
- configMapRef:
|
|
name: ironic-vars
|
|
env:
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: OPERATOR_NAME
|
|
value: "baremetal-operator"
|
|
# Temporary workaround to talk to an external Ironic process until Ironic is running in this pod.
|
|
- name: ironic-proxy
|
|
image: alpine/socat
|
|
command: ["/bin/sh", "-c"]
|
|
args:
|
|
- socat tcp-listen:6385,fork,reuseaddr tcp-connect:$PROVISIONING_IP:6385
|
|
imagePullPolicy: Always
|
|
- name: ironic-inspector-proxy
|
|
image: alpine/socat
|
|
command: ["/bin/sh", "-c"]
|
|
args:
|
|
- socat tcp-listen:5050,fork,reuseaddr tcp-connect:$PROVISIONING_IP:5050
|
|
imagePullPolicy: Always
|