Skip to content

Commit

Permalink
set the feature gate if dual stack
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Apr 28, 2020
1 parent 463e2bb commit 1df6ecb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
6 changes: 0 additions & 6 deletions hack/ci/e2e-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ create_cluster() {
;;
esac

if [ "${IP_FAMILY}" = "DualStack" ]; then
kubeadm_feature_gates='IPv6DualStack: true'
feature_gates='{"IPv6DualStack":true}'
fi
# create the config file
cat <<EOF > "${ARTIFACTS}/kind-config.yaml"
# config for 1 control plane node and 2 workers (necessary for conformance)
Expand All @@ -135,8 +131,6 @@ kubeadmConfigPatches:
kind: ClusterConfiguration
metadata:
name: config
featureGates:
${kubeadm_feature_gates:-}
apiServer:
extraArgs:
"runtime-config": "${runtime_config}"
Expand Down
2 changes: 2 additions & 0 deletions pkg/internal/apis/config/default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions site/content/docs/user/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ networking:
```

#### Dual Stack clusters
You can run dual stack clusters using `kind`, on kubernetes versions +1.16
You can run dual stack clusters using `kind`, on kubernetes versions +1.17
but first you need to [enable ipv6 in your docker daemon][docker enable ipv6].

```yaml
Expand All @@ -391,16 +391,6 @@ nodes:
- role: control-plane
- role: worker
- role: worker
featureGates:
IPv6DualStack: true
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
metadata:
name: config
featureGates:
IPv6DualStack: true
```

### Configure kind to use a proxy
Expand Down

0 comments on commit 1df6ecb

Please sign in to comment.