mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-03-02 10:00:18 +00:00
* pull out script blocks into `hack` path * update e2e workflow to use scripts in `hack` * install cert manager and self-signed cluster issuer in e2e * deploy podinfo with secure port and certificate enabled * add `hack/e2e.sh` script, which can be used to execute the github workflow locally
33 lines
888 B
Bash
Executable File
33 lines
888 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
# add jetstack repository
|
|
helm repo add jetstack https://charts.jetstack.io || true
|
|
|
|
# install cert-manager
|
|
helm upgrade --install cert-manager jetstack/cert-manager \
|
|
--set installCRDs=true \
|
|
--namespace default
|
|
|
|
# wait for cert manager
|
|
kubectl rollout status deployment/cert-manager --timeout=2m
|
|
kubectl rollout status deployment/cert-manager-webhook --timeout=2m
|
|
kubectl rollout status deployment/cert-manager-cainjector --timeout=2m
|
|
|
|
# install self-signed certificate
|
|
cat << 'EOF' | kubectl apply -f -
|
|
apiVersion: cert-manager.io/v1
|
|
kind: ClusterIssuer
|
|
metadata:
|
|
name: self-signed
|
|
spec:
|
|
selfSigned: {}
|
|
EOF
|
|
|
|
# install podinfo with tls enabled
|
|
helm upgrade --install podinfo ./charts/podinfo \
|
|
--set image.repository=test/podinfo \
|
|
--set image.tag=latest \
|
|
--set tls.enabled=true \
|
|
--set certificate.create=true \
|
|
--namespace=default
|