-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the correct hostname in kubelet's kubeconfig (#23)
Closes #22 * Use the correct hostname in kubelet's kubeconfig * Apply `kubectl` role on masters and nodes and let them make kubeconfigs * Fixed var when not longer in loop * Using templating to generate kubeconfigs instead of kubectl
- Loading branch information
1 parent
33b1b0b
commit a209a43
Showing
8 changed files
with
119 additions
and
124 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
19 changes: 19 additions & 0 deletions
19
roles/kube-controller-manager/templates/kube-controller-manager.kubeconfig
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
clusters: | ||
- cluster: | ||
certificate-authority-data: {{ certificate_authority_data }} | ||
server: https://{{ cluster_hostname }}:{{ cluster_port }} | ||
name: default | ||
contexts: | ||
- context: | ||
cluster: default | ||
user: system:kube-controller-manager | ||
name: default | ||
current-context: default | ||
kind: Config | ||
preferences: {} | ||
users: | ||
- name: system:kube-controller-manager | ||
user: | ||
client-certificate-data: {{ client_certificate_data }} | ||
client-key-data: {{ client_key_data }} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
clusters: | ||
- cluster: | ||
certificate-authority-data: {{ certificate_authority_data }} | ||
server: https://{{ cluster_hostname }}:{{ cluster_port }} | ||
name: default | ||
contexts: | ||
- context: | ||
cluster: default | ||
user: system:kube-proxy | ||
name: default | ||
current-context: default | ||
kind: Config | ||
preferences: {} | ||
users: | ||
- name: system:kube-proxy | ||
user: | ||
client-certificate-data: {{ client_certificate_data }} | ||
client-key-data: {{ client_key_data }} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
clusters: | ||
- cluster: | ||
certificate-authority-data: {{ certificate_authority_data }} | ||
server: https://{{ cluster_hostname }}:{{ cluster_port }} | ||
name: default | ||
contexts: | ||
- context: | ||
cluster: default | ||
user: system:kube-scheduler | ||
name: default | ||
current-context: default | ||
kind: Config | ||
preferences: {} | ||
users: | ||
- name: system:kube-scheduler | ||
user: | ||
client-certificate-data: {{ client_certificate_data }} | ||
client-key-data: {{ client_key_data }} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
clusters: | ||
- cluster: | ||
certificate-authority-data: {{ certificate_authority_data }} | ||
server: https://{{ cluster_hostname }}:{{ cluster_port }} | ||
name: default | ||
contexts: | ||
- context: | ||
cluster: default | ||
user: system:node:{{ inventory_hostname }} | ||
name: default | ||
current-context: default | ||
kind: Config | ||
preferences: {} | ||
users: | ||
- name: system:node:{{ inventory_hostname }} | ||
user: | ||
client-certificate-data: {{ client_certificate_data }} | ||
client-key-data: {{ client_key_data }} |