Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kind: support to specify api server address/port #2134

Merged
merged 1 commit into from
Dec 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion yamls/kind.yaml.j2
Original file line number Diff line number Diff line change
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