Skip to content

Commit

Permalink
kind: support to specify api server address/port (kubeovn#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Dec 8, 2022
1 parent 096c82f commit d8d4e91
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.22.15" -%}
{%- 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 d8d4e91

Please sign in to comment.