Skip to content

Commit 246f630

Browse files
sutaakaropenshift-merge-bot[bot]
authored andcommitted
Enable HTTPS for KinD cluster, enable SSL passthrough
1 parent f782f78 commit 246f630

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

github-actions/kind/action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ runs:
6565
echo "Deploying Ingress controller into KinD cluster"
6666
curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/"${VERSION}"/deploy/static/provider/kind/deploy.yaml | sed "s/--publish-status-address=localhost/--report-node-internal-ip-address\\n - --status-update-interval=10/g" | kubectl apply -f -
6767
kubectl annotate ingressclass nginx "ingressclass.kubernetes.io/is-default-class=true"
68+
# Turn on SSL Passthrough
69+
kubectl patch deploy --type json --patch '[{"op":"add","path": "/spec/template/spec/containers/0/args/-","value":"--enable-ssl-passthrough"}]' ingress-nginx-controller -n ingress-nginx
70+
6871
kubectl -n ingress-nginx wait --timeout=300s --for=condition=Available deployments --all
6972
7073
- name: Setup Dnsmasq to resolve hostnames with domain name ${{ inputs.node-hostname }}

github-actions/kind/resources/kind.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ nodes:
2323
- containerPort: 80
2424
hostPort: 80
2525
protocol: TCP
26+
- containerPort: 443
27+
hostPort: 443
28+
protocol: TCP
2629
kubeadmConfigPatches:
2730
- |
2831
kind: InitConfiguration

0 commit comments

Comments
 (0)