Skip to content

Commit

Permalink
Kubeconfig to Endpoint IP
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin2105 committed Oct 11, 2019
1 parent f5f2f44 commit 4000720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k8s-worker/cni/calico/kubeconfig
@@ -1,6 +1,6 @@
{%- set masterCount = pillar['kubernetes']['master']['count'] -%}
{% if masterCount == 1 %}
{%- set k8sMaster = pillar['kubernetes']['master']['hostname'] -%}
{%- set k8sMaster = pillar['kubernetes']['master']['ipaddr'] -%}
{% elif masterCount == 3 %}
{%- set k8sMaster = pillar['kubernetes']['master']['cluster']['node01']['ipaddr'] -%}
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions k8s-worker/kubeconfig
@@ -1,8 +1,8 @@
{%- set masterCount = pillar['kubernetes']['master']['count'] -%}
{% if masterCount == 1 %}
{%- set Endpoint = pillar['kubernetes']['master']['hostname'] -%}
{%- set Endpoint = pillar['kubernetes']['master']['ipaddr'] -%}
{% elif masterCount == 3 %}
{%- set Endpoint = pillar['kubernetes']['master']['cluster']['node01']['hostname'] -%}
{%- set Endpoint = pillar['kubernetes']['master']['cluster']['node01']['ipaddr'] -%}
{% endif %}
{%- set Token = pillar['kubernetes']['global']['kubelet-token'] -%}
apiVersion: v1
Expand Down

0 comments on commit 4000720

Please sign in to comment.