Skip to content

Commit

Permalink
Add kubeadm_opts to variables (#15)
Browse files Browse the repository at this point in the history
I needed the ability to specify my domain name in order to setup remote
access, so I added kubeadm_opts to this Ansible playbook.

This allows someone to modify the kubeadm options so you may add /
append domain names.
  • Loading branch information
cdrage authored and Kyle Bai committed Mar 7, 2018
1 parent 7c64e4c commit e48a94c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ token: b0f7b8.8d1767876297d85c
# 1.8.x feature: --feature-gates SelfHosting=true
init_opts: ""

# Any other additional opts you want to add..
kubeadm_opts: ""
# For example:
# kubeadm_opts: '--apiserver-cert-extra-sans "k8s.domain.com,kubernetes.domain.com"'

service_subnet: 10.96.0
service_cidr: "{{ service_subnet }}.0/12"
dns_name: cluster.local
Expand Down
1 change: 1 addition & 0 deletions roles/kubernetes/master/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--pod-network-cidr {{ pod_network_cidr }} \
--apiserver-advertise-address {{ groups['master'][0] }} \
--token {{ token }} \
{{ kubeadm_opts }} \
{{ init_opts }}
register: init_cluster

Expand Down

0 comments on commit e48a94c

Please sign in to comment.