Repository navigation
Expand file tree
/
Copy pathdeployment.yaml
More file actions
78 lines (78 loc) · 1.63 KB
/
Copy pathdeployment.yaml
File metadata and controls
78 lines (78 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
apiVersion: v1
kind: Service
metadata:
annotations:
kubernetes.digitalocean.com/load-balancer-id: a396ba28-24e3-44e9-9b29-ce43c2a299cc
labels:
app: customer-portal
name: customer-portal
namespace: customer-portal
spec:
externalTrafficPolicy: Cluster
ports:
- name: http
nodePort: 31225
port: 80
protocol: TCP
targetPort: http
- name: https
nodePort: 31226
port: 443
protocol: TCP
targetPort: https
selector:
app: customer-portal
sessionAffinity: None
type: LoadBalancer
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
labels:
app: customer-portal
name: customer-portal
namespace: customer-portal
spec:
tls:
- hosts:
- portal.rapidwireless.com.au
secretName: portal-rapidwireless-tls
rules:
- host: portal.rapidwireless.com.au
http:
paths:
- backend:
serviceName: customer-portal
servicePort: http
path: /
pathType: ImplementationSpecific
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: customer-portal
namespace: customer-portal
labels:
app: customer-portal
spec:
selector:
matchLabels:
app: customer-portal
strategy:
type: Recreate
template:
metadata:
labels:
app: customer-portal
spec:
containers:
- image: docker.pkg.github.com/rapid-wireless/customer_portal/customer_portal:latest
name: customer-portal
imagePullPolicy: Always
ports:
- containerPort: 80
imagePullSecrets:
- name: dockerconfigjson-github-packages