File tree 3 files changed +26
-15
lines changed
3 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 74
74
- name : Set up Docker Buildx
75
75
uses : docker/setup-buildx-action@v3
76
76
77
- # Setup cache
78
- - name : Cache Docker layers
79
- uses : actions/cache@v2
80
- with :
81
- path : /tmp/.buildx-cache
82
- key : ${{ runner.os }}-buildx-${{ github.sha }}
83
- restore-keys : |
84
- ${{ runner.os }}-buildx-
85
-
86
77
- name : Login to GitHub Container Registry
87
78
uses : docker/login-action@v3
88
79
with :
108
99
push : ${{github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/feature/actions'}}
109
100
tags : ${{ steps.meta.outputs.tags }}
110
101
labels : ${{ steps.meta.outputs.labels }}
111
- cache-from : type=gha
112
- cache-to : type=gha,mode=max
113
102
114
103
deployment :
115
104
needs : build
Original file line number Diff line number Diff line change
1
+ # I believe this only needed to be run once on the cluster as a whole, to make
2
+ # a LetsEncrypt service available. That was done with:
3
+ # kubectl apply -f cluster/cluster-issuer.yaml
4
+ apiVersion : cert-manager.io/v1
5
+ kind : ClusterIssuer
6
+ metadata :
7
+ name : letsencrypt-prod
8
+ spec :
9
+ acme :
10
+ server : https://acme-v02.api.letsencrypt.org/directory
11
+ email : vcarl@reactiflux.com
12
+ privateKeySecretRef :
13
+ name : letsencrypt-prod-key
14
+ solvers :
15
+ - http01 :
16
+ ingress :
17
+ class : nginx
Original file line number Diff line number Diff line change @@ -3,9 +3,14 @@ kind: Ingress
3
3
metadata :
4
4
name : mod-bot-ingress
5
5
annotations :
6
- nginx.ingress.kubernetes.io/rewrite-target : /
7
- cert-manager.io/cluster-issuer : letsencrypt-prod # Optional, for TLS
6
+ nginx.ingress.kubernetes.io/ssl-redirect : " true"
7
+ nginx.ingress.kubernetes.io/force-ssl-redirect : " true"
8
+ nginx.ingress.kubernetes.io/hsts : " true"
9
+ nginx.ingress.kubernetes.io/hsts-max-age : " 31536000"
10
+ nginx.ingress.kubernetes.io/hsts-include-subdomains : " true"
11
+ cert-manager.io/cluster-issuer : letsencrypt-prod
8
12
spec :
13
+ ingressClassName : nginx
9
14
rules :
10
15
- host : euno.reactiflux.com
11
16
http :
@@ -14,10 +19,10 @@ spec:
14
19
pathType : Prefix
15
20
backend :
16
21
service :
17
- name : mod-bot
22
+ name : mod-bot-service
18
23
port :
19
24
number : 80
20
25
tls :
21
26
- hosts :
22
27
- euno.reactiflux.com
23
- secretName : my-tls-secret # Used for HTTPS
28
+ secretName : letsencrypt-prod-key
You can’t perform that action at this time.
0 commit comments