mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 02:46:30 +02:00
31 lines
793 B
Bash
Executable file
31 lines
793 B
Bash
Executable file
#!/bin/bash -x
|
|
|
|
kubectl create namespace pomerium
|
|
|
|
# Create shared TLS secret
|
|
kubectl create secret tls wildcard-tls \
|
|
--namespace pomerium \
|
|
--cert=_wildcard.localhost.pomerium.io.pem \
|
|
--key=_wildcard.localhost.pomerium.io-key.pem
|
|
|
|
# Install Traefik helm chart
|
|
helm upgrade --install --wait \
|
|
--namespace pomerium \
|
|
traefik traefik/traefik \
|
|
--values values/traefik.yaml
|
|
|
|
# Install Pomerium helm chart
|
|
helm upgrade --install --wait \
|
|
--namespace pomerium \
|
|
pomerium pomerium/pomerium \
|
|
--values values/pomerium.yaml
|
|
|
|
# Create middleware
|
|
kubectl --namespace pomerium apply -f crds/middleware.yaml
|
|
|
|
# Install hello app
|
|
helm upgrade --install --wait \
|
|
--namespace pomerium \
|
|
--version 6.2.1 \
|
|
hello bitnami/nginx \
|
|
--values values/hello.yaml
|