Skip to content

Commit

Permalink
tls
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroberetta committed Nov 2, 2022
1 parent 8caa897 commit 17c478c
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ deploy-core-production: push-core-image
kubectl apply -k openscore-core/k8s/overlays/production

deploy-ui-production: push-ui-image
kubectl apply -k openscore-ui/k8s/base
kubectl apply -k openscore-ui/k8s/overlays/production

deploy-core-local: push-core-image
kubectl apply -k openscore-core/k8s/overlays/local
Expand Down
2 changes: 2 additions & 0 deletions openscore-core/k8s/base/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Ingress
metadata:
name: openscore-core
namespace: openscore
annotations:
kubernetes.io/ingress.class: nginx
spec:
ingressClassName: nginx
rules:
Expand Down
12 changes: 12 additions & 0 deletions openscore-core/k8s/overlays/production/ingress-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: openscore-core
namespace: openscore
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- rhopenscore.com
secretName: tls-core
3 changes: 2 additions & 1 deletion openscore-core/k8s/overlays/production/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bases:
- ../../base
patchesStrategicMerge:
- deployment-patch.yaml
- deployment-patch.yaml
- ingress-patch.yaml
2 changes: 1 addition & 1 deletion openscore-ui/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_BASE_URL=http://rhopenscore.com
NEXT_PUBLIC_BASE_URL=https://rhopenscore.com
2 changes: 2 additions & 0 deletions openscore-ui/k8s/base/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Ingress
metadata:
name: openscore-ui
namespace: openscore
annotations:
kubernetes.io/ingress.class: nginx
spec:
ingressClassName: nginx
rules:
Expand Down
12 changes: 12 additions & 0 deletions openscore-ui/k8s/overlays/production/ingress-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: openscore-ui
namespace: openscore
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- rhopenscore.com
secretName: tls-ui
4 changes: 4 additions & 0 deletions openscore-ui/k8s/overlays/production/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bases:
- ../../base
patchesStrategicMerge:
- ingress-patch.yaml

0 comments on commit 17c478c

Please sign in to comment.