forked from cms-vivsoft/R.shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
62 lines (61 loc) · 1.02 KB
/
deploy.yml
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: v1
kind: Service
metadata:
name: cms
spec:
selector:
app: cms
ports:
- port: 3838
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cms
labels:
app: cms
spec:
selector:
matchLabels:
app: cms
replicas: 2
template:
metadata:
labels:
app: cms
spec:
containers:
- name: cms
image: bdwyer/vs-cms:latest
imagePullPolicy: Always
ports:
- containerPort: 3838
resources:
requests:
memory: "2Gi"
imagePullSecrets:
- name: dockerhub
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cms
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- cms.k8s.sfo2.bdwy.cloud
secretName: cms-tls
rules:
- host: cms.k8s.sfo2.bdwy.cloud
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: cms
port:
number: 3838