-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.ottemo-io.yaml
66 lines (63 loc) · 1.13 KB
/
kubernetes.ottemo-io.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
62
63
64
65
66
apiVersion: v1
kind: ReplicationController
metadata:
name: ottemo-io
spec:
replicas: 1
template:
metadata:
labels:
app: "ottemo-io"
server_name: "ottemo.io"
spec:
containers:
- name: ottemo-io
resources:
requests:
cpu: 50m
memory: 100Mi
image: gcr.io/ottemo-kube/ottemo-io:20170404-134139
ports:
- containerPort: 80
- containerPort: 443
---
apiVersion: v1
kind: Service
metadata:
name: ottemo-io
labels:
app: "ottemo-io"
server_name: "ottemo.io"
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
- port: 443
targetPort: 443
protocol: TCP
name: https
type: NodePort
selector:
app: ottemo-io
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ottemo-io
labels:
app: "ottemo-io"
server_name: "ottemo.io"
annotations:
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "gce"
spec:
tls:
- hosts:
- ottemo.io
- www.ottemo.io
secretName: ottemo-io-tls
backend:
serviceName: ottemo-io
servicePort: 80