Skip to content

Commit

Permalink
kind: support to specify api server address/port (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Dec 8, 2022
1 parent b46b103 commit 371f95c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion yamls/kind.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{% set nodeTag = "v1.21.14" -%}
{%- if api_server_address is not defined -%}
{%- set api_server_address = "127.0.0.1" -%}
{%- endif -%}
{%- if api_server_port is not defined -%}
{%- set api_server_port = 0 -%}
{%- endif -%}
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
kubeProxyMode: {{ kube_proxy_mode }}
disableDefaultCNI: true
ipFamily: {{ ip_family }}
apiServerAddress: 127.0.0.1
apiServerAddress: {{ api_server_address }}
apiServerPort: {{ api_server_port }}
kubeadmConfigPatches:
- |
kind: ClusterConfiguration
Expand Down

0 comments on commit 371f95c

Please sign in to comment.