Skip to content

Commit

Permalink
Merge pull request #1137 from dholt/disable_container_reg
Browse files Browse the repository at this point in the history
Disable k8s container registry by default
  • Loading branch information
dholt authored Mar 24, 2022
2 parents c01e64f + 218c4b3 commit 2007c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.example/group_vars/k8s-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ nfs_exports:
################################################################################
# Container registry #
################################################################################
kube_enable_container_registry: true
kube_enable_container_registry: false
docker_insecure_registries: "{{ groups['kube-master']|map('regex_replace', '^(.*)$', '\\1:5000')|list + ['registry.local:31500']}}"
crio_insecure_registries: "{{ groups['kube-master']|map('regex_replace', '^(.*)$', '\\1:5000')|list + ['registry.local:31500']}}"
docker_registry_mirrors: "{{ groups['kube-master'] | map('regex_replace', '^(.*)$', 'http://\\1:5000') | list }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/k8s-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

# Set up a local cluster container registry
- include: container/standalone-container-registry.yml hostlist=kube-master
when: kube_enable_container_registry|default(true)
when: kube_enable_container_registry|default(false)

# Install 'sshpass' program for: https://github.com/ansible/ansible/issues/56629
- hosts: all
Expand Down

0 comments on commit 2007c9f

Please sign in to comment.