-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
79 lines (79 loc) · 1.62 KB
/
deployment.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
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: apps/v1
kind: Deployment
metadata:
name: ml-portal
namespace: ml-portal
labels:
k8s-app: ml-portal
spec:
replicas: 1
selector:
matchLabels:
k8s-app: ml-portal
template:
metadata:
labels:
k8s-app: ml-portal
spec:
volumes:
- name: portalconf
secret:
secretName: portalconf-secret
- name: kubeconfig
secret:
secretName: kubeconfig-secret
containers:
- name: ml-portal
image: ataylor89/ml-portal-amd64:latest
imagePullPolicy: Always
volumeMounts:
- mountPath: /usr/local/etc/ml-portal
name: portalconf
- mountPath: /usr/local/etc/kube
name: kubeconfig
ports:
- containerPort: 8080
---
kind: Service
apiVersion: v1
metadata:
name: ml-portal
namespace: ml-portal
labels:
k8s-app: ml-portal
spec:
type: NodePort
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
selector:
k8s-app: ml-portal
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ml-portal
namespace: ml-portal
labels:
k8s-app: ml-portal
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod-nginx
spec:
tls:
- hosts:
- analytics.mwt2.org
secretName: mlportal-tls
rules:
- host: analytics.mwt2.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ml-portal
port:
number: 80