diff --git a/manifests/0000_80_machine-config-operator_021_images.configmap.yaml b/manifests/0000_80_machine-config-operator_021_images.configmap.yaml new file mode 100644 index 000000000..68f53684e --- /dev/null +++ b/manifests/0000_80_machine-config-operator_021_images.configmap.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: machine-config-operator-images + namespace: openshift-machine-config-operator + annotations: + include.release.openshift.io/ibm-cloud-managed: "true" + include.release.openshift.io/self-managed-high-availability: "true" + include.release.openshift.io/single-node-developer: "true" +data: + images.json: > + { + "releaseVersion": "0.0.1-snapshot", + "machineConfigOperator": "quay.io/dgrigore/machine-config-operator:latest", + "etcd": "registry.svc.ci.openshift.org/openshift:etcd", + "infraImage": "registry.svc.ci.openshift.org/openshift:pod", + "kubeClientAgentImage": "registry.svc.ci.openshift.org/openshift:kube-client-agent", + "clusterEtcdOperatorImage": "registry.svc.ci.openshift.org/openshift:cluster-etcd-operator", + "keepalivedImage": "registry.svc.ci.openshift.org/openshift:keepalived-ipfailover", + "corednsImage": "registry.svc.ci.openshift.org/openshift:coredns", + "mdnsPublisherImage": "registry.svc.ci.openshift.org/openshift:mdns-publisher", + "haproxyImage": "registry.svc.ci.openshift.org/openshift:haproxy-router", + "baremetalRuntimeCfgImage": "registry.svc.ci.openshift.org/openshift:baremetal-runtimecfg", + "oauthProxy": "registry.svc.ci.openshift.org/openshift:oauth-proxy" + } + diff --git a/manifests/0000_81_machine-config-operator_02_images.configmap.yaml b/manifests/0000_81_machine-config-operator_02_images.configmap.yaml new file mode 100644 index 000000000..68f53684e --- /dev/null +++ b/manifests/0000_81_machine-config-operator_02_images.configmap.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: machine-config-operator-images + namespace: openshift-machine-config-operator + annotations: + include.release.openshift.io/ibm-cloud-managed: "true" + include.release.openshift.io/self-managed-high-availability: "true" + include.release.openshift.io/single-node-developer: "true" +data: + images.json: > + { + "releaseVersion": "0.0.1-snapshot", + "machineConfigOperator": "quay.io/dgrigore/machine-config-operator:latest", + "etcd": "registry.svc.ci.openshift.org/openshift:etcd", + "infraImage": "registry.svc.ci.openshift.org/openshift:pod", + "kubeClientAgentImage": "registry.svc.ci.openshift.org/openshift:kube-client-agent", + "clusterEtcdOperatorImage": "registry.svc.ci.openshift.org/openshift:cluster-etcd-operator", + "keepalivedImage": "registry.svc.ci.openshift.org/openshift:keepalived-ipfailover", + "corednsImage": "registry.svc.ci.openshift.org/openshift:coredns", + "mdnsPublisherImage": "registry.svc.ci.openshift.org/openshift:mdns-publisher", + "haproxyImage": "registry.svc.ci.openshift.org/openshift:haproxy-router", + "baremetalRuntimeCfgImage": "registry.svc.ci.openshift.org/openshift:baremetal-runtimecfg", + "oauthProxy": "registry.svc.ci.openshift.org/openshift:oauth-proxy" + } + diff --git a/manifests/0000_81_machine-config-operator_04_deployment.yaml b/manifests/0000_81_machine-config-operator_04_deployment.yaml new file mode 100644 index 000000000..4e51f5ce1 --- /dev/null +++ b/manifests/0000_81_machine-config-operator_04_deployment.yaml @@ -0,0 +1,68 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: machine-config-operator + namespace: openshift-machine-config-operator + labels: + k8s-app: machine-config-operator + annotations: + exclude.release.openshift.io/internal-openshift-hosted: "true" + include.release.openshift.io/self-managed-high-availability: "true" + include.release.openshift.io/single-node-developer: "true" +spec: + replicas: 1 + selector: + matchLabels: + k8s-app: machine-config-operator + template: + metadata: + labels: + k8s-app: machine-config-operator + annotations: + workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}' + spec: + containers: + - name: machine-config-operator + image: quay.io/dgrigore/machine-config-operator:latest + args: + - "start" + - "--images-json=/etc/mco/images/images.json" + resources: + requests: + cpu: 20m + memory: 50Mi + env: + - name: RELEASE_VERSION + value: "0.0.1-snapshot" + terminationMessagePolicy: FallbackToLogsOnError + volumeMounts: + - name: root-ca + mountPath: /etc/ssl/kubernetes/ca.crt + - name: images + mountPath: /etc/mco/images + nodeSelector: + node-role.kubernetes.io/master: "" + priorityClassName: "system-cluster-critical" + restartPolicy: Always + securityContext: + runAsNonRoot: true + runAsUser: 65534 + tolerations: + - key: "node-role.kubernetes.io/master" + operator: "Exists" + effect: "NoSchedule" + - key: "node.kubernetes.io/unreachable" + operator: "Exists" + effect: "NoExecute" + tolerationSeconds: 120 + - key: "node.kubernetes.io/not-ready" + operator: "Exists" + effect: "NoExecute" + tolerationSeconds: 120 + volumes: + - name: images + configMap: + name: machine-config-operator-images + - name: root-ca + hostPath: + path: /etc/kubernetes/ca.crt diff --git a/manifests/image-references b/manifests/image-references index c79cb13ee..83fa00d58 100644 --- a/manifests/image-references +++ b/manifests/image-references @@ -14,3 +14,7 @@ spec: from: kind: DockerImage name: registry.ci.openshift.org/openshift:openstack-cloud-controller-manager + - name: machine-config-operator + from: + kind: DockerImage + name: quay.io/dgrigore/machine-config-operator:latest