Skip to content

Instantly share code, notes, and snippets.

@nil1729
Last active June 2, 2025 08:53
Show Gist options
  • Save nil1729/d3a0014064f05b032df2b6f98a7701b4 to your computer and use it in GitHub Desktop.
Save nil1729/d3a0014064f05b032df2b6f98a7701b4 to your computer and use it in GitHub Desktop.
Kubernetes Cluster Setup
# project contour setup
# https://projectcontour.io/getting-started/
# helm installation
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install projectcontour bitnami/contour --namespace projectcontour --create-namespace
# verify resources
kubectl -n projectcontour get po,svc
# kind cluster port forward
kubectl -n projectcontour port-forward service/projectcontour-envoy 8888:80 # http
kubectl -n projectcontour port-forward service/projectcontour-envoy 8443:443 # https
# external secret operator setup
# https://external-secrets.io/v0.5.5/guides-getting-started/
# helm installation
helm repo add external-secrets https://charts.external-secrets.io
helm install external-secrets \
external-secrets/external-secrets \
-n external-secrets \
--create-namespace \
--set installCRDs=true
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: test-external-secret
namespace: default
spec:
refreshInterval: 24h
secretStoreRef:
kind: ClusterSecretStore
name: gcp-secret-manager
target:
name: secret-to-be-created
creationPolicy: Owner
data:
- secretKey: test_key
remoteRef:
key: gcp-secret-manager-secret-key
apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
name: gcp-secret-manager
spec:
provider:
gcpsm:
auth:
secretRef:
secretAccessKeySecretRef:
name: google-credentials
key: sa.json # service account having access to gcp secret manager
namespace: external-secrets
projectID: pwa-demo-nil1729
kubectl create secret generic google-credentials \
--from-file=/path/to/sa.json \
-n external-secrets
kubectl create secret tls test-tls-secret \
--cert=/path/to/cert \
--key=/path/to/key \
-n default
sudo certbot certonly --manual --preferred-challenges dns -d trino.k8s.test.nilanjandeb.com
sudo certbot certonly --standalone -d trino.k8s.test.nilanjandeb.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment