This repository was archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.yaml
More file actions
125 lines (117 loc) · 2.33 KB
/
app.yaml
File metadata and controls
125 lines (117 loc) · 2.33 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: app-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: "uriteller-ingress"
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "gce"
spec:
tls:
- secretName: tls-secret
hosts:
- uriteller.io
rules:
- host: uriteller.io
http:
paths:
- backend:
serviceName: app
servicePort: http
---
apiVersion: v1
kind: Service
metadata:
name: app
spec:
type: NodePort
selector:
name: app
ports:
- name: http
port: 80
targetPort: http
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: app
spec:
replicas: 3
template:
metadata:
labels:
name: app
spec:
containers:
- name: app
image: hownetworks/uriteller:v0.2.11
ports:
- containerPort: 8080
name: http
envFrom:
- configMapRef:
name: uriteller-config
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
timeoutSeconds: 1
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: worker
spec:
replicas: 3
template:
metadata:
labels:
name: worker
spec:
containers:
- name: app
image: hownetworks/uriteller:v0.2.11
env:
- name: SCRIPT
value: worker.js
- name: WHEREABOUTS_URL
value: http://localhost:8080
- name: whereabouts
image: hownetworks/whereabouts:v0.3.3
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-lego
spec:
replicas: 1
template:
metadata:
labels:
name: kube-lego
spec:
containers:
- name: kube-lego
image: jetstack/kube-lego:0.1.5
ports:
- containerPort: 8080
resources:
requests:
memory: 64Mi
cpu: 25m
env:
- name: LEGO_EMAIL
value: devel@hownetworks.io
- name: LEGO_URL
value: https://acme-v01.api.letsencrypt.org/directory
- name: LEGO_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5