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 e91bfed commit 5c661d4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions yamls/kind.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{% if k8s_version is not defined %}
{% set k8s_version = "v1.24.7" -%}
{% endif %}
{%- if k8s_version is not defined -%}
{%- set k8s_version = "v1.24.7" -%}
{%- 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 5c661d4

Please sign in to comment.