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 9bbf5e4 commit ef4e755
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion yamls/kind.yaml.j2
Expand Up @@ -13,13 +13,20 @@
{%- if single is not defined -%}
{%- set single = "false" -%}
{%- endif -%}
{%- 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 }}
{%- if ip_family is equalto "ipv4" %}
podSubnet: "10.16.0.0/16"
serviceSubnet: "10.96.0.0/12"
Expand Down

0 comments on commit ef4e755

Please sign in to comment.