-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
61 lines (61 loc) · 2.58 KB
/
deploy.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: gheaadproxy
name: gheaadproxy
spec:
replicas: 1
selector:
matchLabels:
app: gheaadproxy
strategy: {}
template:
metadata:
labels:
app: gheaadproxy
spec:
containers:
- image: acrmamelch.azurecr.io/gheaadproxy:latest
name: gheaadproxy
resources: {}
ports:
- containerPort: 5000
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: gheaadproxy-service
spec:
selector:
app: gheaadproxy
ports:
- protocol: TCP
port: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gheaadproxy-ingress
annotations:
kubernetes.io/ingress.class: azure/application-gateway
cert-manager.io/cluster-issuer: letsencrypt
cert-manager.io/acme-challenge-type: http01
appgw.ingress.kubernetes.io/ssl-redirect: "true"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gheaadproxy-service
port:
number: 80
host: ghe.francecentral.cloudapp.azure.com
tls:
- hosts:
- ghe.francecentral.cloudapp.azure.com
secretName: guestbook-secret-name