Skip to content

Commit 91ace29

Browse files
authored
Merge pull request #3789 from Countly/fix/ingress-config-k8-baremetal
Ingress file for baremetal/unmanaged k8 setup
2 parents a9a75d0 + d20425d commit 91ace29

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: countly-tls
5+
data:
6+
tls.crt: YOUR_SSL_CERT_IN_BASE64 # cat cert.crt | base64
7+
tls.key: YOUR_SSL_KEY_IN_BASE64 # cat cert.key | base64
8+
type: kubernetes.io/tls
9+
---
10+
apiVersion: extensions/v1beta1
11+
kind: Ingress
12+
metadata:
13+
name: countly-ingress
14+
annotations:
15+
nginx.ingress.kubernetes.io/rewrite-target: /$1
16+
spec:
17+
tls:
18+
- hosts:
19+
- YOUR_HOSTNAME # countly.example.com
20+
secretName: countly-tls
21+
rules:
22+
- http:
23+
paths:
24+
- backend:
25+
serviceName: countly-api
26+
servicePort: 3001
27+
path: /(i.*)
28+
- backend:
29+
serviceName: countly-api
30+
servicePort: 3001
31+
path: /(i/.*)
32+
- backend:
33+
serviceName: countly-api
34+
servicePort: 3001
35+
path: /(o.*)
36+
- backend:
37+
serviceName: countly-api
38+
servicePort: 3001
39+
path: /(o/.*)
40+
- backend:
41+
serviceName: countly-frontend
42+
servicePort: 6001
43+
path: /(.*)
44+
- backend:
45+
serviceName: countly-frontend
46+
servicePort: 6001
47+
path: /(images/.*)

0 commit comments

Comments
 (0)