diff --git a/manifests/04-ca-trusted.yaml b/manifests/04-ca-trusted.yaml new file mode 100644 index 0000000000..1556aaa2f4 --- /dev/null +++ b/manifests/04-ca-trusted.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + annotations: + release.openshift.io/create-only: "true" + labels: + config.openshift.io/inject-trusted-cabundle: "true" + name: trusted-ca + namespace: openshift-image-registry diff --git a/manifests/07-operator.yaml b/manifests/07-operator.yaml index d1cbf42c6e..fed50518a1 100644 --- a/manifests/07-operator.yaml +++ b/manifests/07-operator.yaml @@ -56,6 +56,9 @@ spec: value: "cluster-image-registry-operator" - name: IMAGE value: docker.io/openshift/origin-docker-registry:latest + volumeMounts: + - name: trusted-ca + mountPath: /etc/pki/ca-trust/extracted/pem/ - name: cluster-image-registry-operator-watch image: docker.io/openshift/origin-cluster-image-registry-operator:latest command: @@ -81,3 +84,14 @@ spec: fieldRef: apiVersion: v1 fieldPath: metadata.namespace + volumeMounts: + - name: trusted-ca + mountPath: /etc/pki/ca-trust/extracted/pem/ + volumes: + - name: trusted-ca + configMap: + name: trusted-ca + optional: true + items: + - key: ca-bundle.crt + path: tls-ca-bundle.pem