File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Secondary ingress - one more hostname on same AppSec agent
2
+
3
+ ``` shell
4
+ # run on AppSec VM:
5
+
6
+ # secondary hostname on same agent
7
+ export APPSEC_HOSTNAME=secondary.klaud.online
8
+ export HOST_TAG=$( echo $APPSEC_HOSTNAME | tr ' .' ' -' )
9
+ echo $HOST_TAG
10
+ verify-dns
11
+
12
+
13
+ cat - << EOF | sed "s/APPSEC_HOSTNAME/$APPSEC_HOSTNAME /" | sed "s/HOST_TAG/$HOST_TAG /" | kubectl apply -f -
14
+ apiVersion: networking.k8s.io/v1
15
+ kind: Ingress
16
+ metadata:
17
+ name: HOST_TAG-appsec-ingress
18
+ annotations:
19
+ cert-manager.io/cluster-issuer: lets-encrypt
20
+ spec:
21
+ tls:
22
+ - hosts:
23
+ - APPSEC_HOSTNAME
24
+ secretName: HOST_TAG-appsec-ingress-tls
25
+ rules:
26
+ - host: APPSEC_HOSTNAME
27
+ http:
28
+ paths:
29
+ - backend:
30
+ service:
31
+ name: appsec
32
+ port:
33
+ number: 80
34
+ path: /
35
+ pathType: Prefix
36
+ EOF
37
+ ```
You can’t perform that action at this time.
0 commit comments