|
| 1 | +<!-- |
| 2 | +# |
| 3 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 | +# contributor license agreements. See the NOTICE file distributed with |
| 5 | +# this work for additional information regarding copyright ownership. |
| 6 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 | +# (the "License"); you may not use this file except in compliance with |
| 8 | +# the License. You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +# |
| 18 | +--> |
| 19 | + |
| 20 | +# Using private docker registry |
| 21 | + |
| 22 | +By default, helm charts currently use docker hub to download images to deploy OpenWhisk components on Kubernetes. If your Kubernetes provider does not allow public docker registry, you can use your hosted docker image registry to deploy OpenWhisk on Kubernetes. |
| 23 | + |
| 24 | +- All openwhisk images should be uploaded to your hosted docker registry server. |
| 25 | + - openwhisk/apigateway |
| 26 | + - apache/couchdb |
| 27 | + - openwhisk/controller |
| 28 | + - openwhisk/invoker |
| 29 | + - wurstmeister/kafka |
| 30 | + - openwhisk/ow-utils |
| 31 | + - zookeeper |
| 32 | + - nginx |
| 33 | + - redis |
| 34 | + - busybox |
| 35 | + - openwhisk/alarmprovider |
| 36 | + - openwhisk/kafkaprovider |
| 37 | + - openwhisk/cloudantprovider |
| 38 | + |
| 39 | +- Add details of your docker registry information in mycluster.yml. |
| 40 | + |
| 41 | + ```yaml |
| 42 | + docker: |
| 43 | + registry: |
| 44 | + name: "registry-name/" |
| 45 | + username: username |
| 46 | + password: "Passowrd" |
| 47 | + ``` |
| 48 | +
|
| 49 | + > - enabling registry information will cause all your images to be pulled from private docker registry only. |
| 50 | + > - Append / in your docker registry name. |
| 51 | +
|
| 52 | +Enabling *registry.name* will create a docker-registry secret as *{ReleaseName}-private-registry.auth* in Kubernetes which will be used in pod/jobs as *imagePullSecrets*. |
| 53 | +
|
| 54 | +```yaml |
| 55 | +# If ReleaseName is owdev and namespace is openwhisk |
| 56 | +# kubectl get secrets owdev-private-registry.auth -o yaml |
| 57 | + |
| 58 | +apiVersion: v1 |
| 59 | +data: |
| 60 | + .dockerconfigjson: <Base64 encoded> |
| 61 | +kind: Secret |
| 62 | +metadata: |
| 63 | + annotations: |
| 64 | + kubectl.kubernetes.io/last-applied-configuration: | |
| 65 | + {"apiVersion":"v1","data":{".dockerconfigjson":"Base64 Encoded"},"kind":"Secret","metadata":{"annotations":{},"labels":{"app":"owdev-openwhisk","chart":"openwhisk-0.1.4","heritage":"Tiller","release":"owdev"},"name":"owdev-private-registry.auth","namespace":"openwhisk"},"type":"kubernetes.io/dockerconfigjson"} |
| 66 | + creationTimestamp: "2019-04-04T06:44:43Z" |
| 67 | + labels: |
| 68 | + app: owdev-openwhisk |
| 69 | + chart: openwhisk-0.1.4 |
| 70 | + heritage: Tiller |
| 71 | + release: owdev |
| 72 | + name: owdev-private-registry.auth |
| 73 | + namespace: openwhisk |
| 74 | + resourceVersion: "18273580" |
| 75 | + selfLink: /api/v1/namespaces/openwhisk/secrets/owdev-private-registry.auth |
| 76 | + uid: 20f03275-56a5-11e9-9164-005056a3e755 |
| 77 | +type: kubernetes.io/dockerconfigjson |
| 78 | +``` |
0 commit comments