forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from paulczar/repo-creds
Allow user to specify registry credentials in values or via a premade secret.
- Loading branch information
Showing
5 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,32 @@ for Spinnaker. If you want to add arbitrary clusters need to do the following: | |
deploymentContext: my-context | ||
``` | ||
|
||
## Specifying Docker Registries and Valid Images (Repositories) | ||
|
||
Spinnaker will only give you access to Docker images that have been whitelisted, if you're using a private registry or a private repository you also need to provide credentials. Update the following values of the chart to do so: | ||
```yaml | ||
dockerRegistries: | ||
- name: dockerhub | ||
address: index.docker.io | ||
repositories: | ||
- library/alpine | ||
- library/ubuntu | ||
- library/centos | ||
- library/nginx | ||
# - name: gcr | ||
# address: https://gcr.io | ||
# username: _json_key | ||
# password: '<INSERT YOUR SERVICE ACCOUNT JSON HERE>' | ||
# email: [email protected] | ||
``` | ||
You can provide passwords as a Helm value, or you can use a pre-created secret containing your registry passwords. The secret should have an item per Registry in the format: `<registry name>: <password>`. In which case you'll specify the secret to use in `dockerRegistryAccountSecret` like so: | ||
|
||
```yaml | ||
dockerRegistryAccountSecret: myregistry-secrets | ||
``` | ||
|
||
## Customizing your installation | ||
|
||
### Manual | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,15 @@ dockerRegistries: | |
# password: '<INSERT YOUR SERVICE ACCOUNT JSON HERE>' | ||
# email: [email protected] | ||
|
||
# If you don't want to put your passwords into a values file | ||
# you can use a pre-created secret instead of putting passwords | ||
# (specify secret name in below `dockerRegistryAccountSecret`) | ||
# per account above with data in the format: | ||
# <name>: <password> | ||
|
||
# dockerRegistryAccountSecret: myregistry-secrets | ||
|
||
|
||
kubeConfig: | ||
# Use this when you want to register arbitrary clusters with Spinnaker | ||
# Upload your ~/kube/.config to a secret | ||
|
@@ -78,6 +87,10 @@ redis: | |
nodeSelector: {} | ||
cluster: | ||
enabled: false | ||
# Uncomment if you don't want to create a PVC for redis | ||
# master: | ||
# persistence: | ||
# enabled: false | ||
|
||
# Minio access/secret keys for the in-cluster S3 usage | ||
# Minio is not exposed publically | ||
|
@@ -89,6 +102,9 @@ minio: | |
secretKey: spinnakeradmin | ||
bucket: "spinnaker" | ||
nodeSelector: {} | ||
# Uncomment if you don't want to create a PVC for minio | ||
# persistence: | ||
# enabled: false | ||
|
||
gcs: | ||
enabled: false | ||
|