acs-engine/examples/dcos-private-registry
Sylvain Rabot 00fd963d88 Remove trailing whitespaces (#2495)
* Remove trailing whitespaces in parts/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in pkg/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in examples/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in docs/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in test/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in extensions/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in .circleci/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in jenkins/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>

* Remove trailing whitespaces in scripts/

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
2018-03-27 12:21:55 -07:00
..
README.md Remove trailing whitespaces (#2495) 2018-03-27 12:21:55 -07:00
dcos.json Refactor registry credentials to DcosConfig (#1137) 2018-03-16 14:21:00 -07:00

README.md

Private Registry Support

ACS can deploy credentials to private registries to agent nodes DC/OS clusters.

The credentials are specified in the orchestrator profile in the apimodel:

  "properties": {
    "orchestratorProfile": {
      "orchestratorType": "DCOS",
      "dcosConfig" : {
        "Registry" : "",
        "RegistryUser" : "",
        "RegistryPassword" : ""
      }
    },

The agent provisioning process will then create a tar archive containing a docker config as documented at: Using a Private Docker Registry

Example

Let's provision a DC/OS cluster with credentials to an Azure Container Registry deployed to every agent node.

  "properties": {
    "orchestratorProfile": {
      "orchestratorType": "DCOS",
      "registry" : "xtophregistry.azurecr.io",
      "registryUser" : "xtophregistry",
      "registryPassword" : "aN//=+l==Z+/A=3hXhA+mSX=rXwB/UgW"
    },
  • Run acs-engine to create ARM templates
./acs-engine generate examples/dcos-private-registry/dcos.json
  • Deploy the cluster
az group create -l eastus -n cluster-rg
az group deployment create -g cluster-rg --template-file _output/dcoscluster/azuredeploy.json --parameters @_output/dcoscluster/azuredeploy.parameters.json
  • Create a Service to deploy a container from the ACR Service Creation from Registry

  • Add the credential path on the agent using the JSON editor JSON editor with credential path

  • See the Service running Running Service

  • Check the credential deployment Running Service

Limitations

  • The API model currenlty only supports credentials to a single registry.
  • Not tested with Kubernetes clusters
  • Credentials have to be updated on each node