-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
kubernetes.yaml
64 lines (64 loc) · 1.24 KB
/
kubernetes.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
apiVersion: v1
kind: Service
metadata:
name: bin-sohamsen-me
labels:
app: bin-sohamsen-me
service: bin-sohamsen-me
spec:
ports:
- name: http
port: 80
targetPort: 3000
selector:
app: bin-sohamsen-me
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bin-sohamsen-me
spec:
replicas: 1
selector:
matchLabels:
app: bin-sohamsen-me
template:
metadata:
labels:
app: bin-sohamsen-me
spec:
containers:
- image: registry.sohamsen.me/ghostdev/yabin:latest
imagePullPolicy: IfNotPresent
name: bin-sohamsen-me
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: yabin-config
resources:
limits:
cpu: "1"
requests:
cpu: "1"
imagePullSecrets:
- name: registry-sohamsen-me
restartPolicy: Always
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: bin-sohamsen-me
spec:
hosts:
- 'bin.sohamsen.me'
gateways:
- prod/sohamsen-me-gateway
http:
- route:
- destination:
host: bin-sohamsen-me
port:
number: 80