Skip to content

Commit

Permalink
enable https in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jun 13, 2024
1 parent 27008d5 commit c43742c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tasks:
- echo "GOOGLE_OAUTH_CLIENT_ID=__REPLACE__.apps.googleusercontent.com" >> deployment/local-dev/local.env
- echo "GOOGLE_OAUTH_CLIENT_SECRET=__REPLACE__" >> deployment/local-dev/local.env
- kubectl --context=docker-desktop apply -f deployment/setup/namespace.yaml
- kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml
- docker build -t local-dev-init data/
setup-win:
platforms: [ windows ]
Expand Down
8 changes: 4 additions & 4 deletions deployment/local-dev/ingress-config.patch.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- op: replace
path: /spec/tls/0/secretName
value: null
- op: add
- op: add
# ~1 gets replaced with a / in the path
path: /metadata/annotations/nginx.ingress.kubernetes.io~1ssl-redirect
value: "false"
- op: add
path: /metadata/annotations/cert-manager.io~1cluster-issuer
value: selfsigned-issuer
1 change: 1 addition & 0 deletions deployment/local-dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
- ingress-deployment.yaml
- db-secrets.yaml
- lf-classic-secrets.yaml
- self-signed-ssl.yaml

components:
- ../init-repos
Expand Down
6 changes: 6 additions & 0 deletions deployment/local-dev/self-signed-ssl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: selfsigned-issuer
spec:
selfSigned: { }

0 comments on commit c43742c

Please sign in to comment.