-
Notifications
You must be signed in to change notification settings - Fork 0
/
example2.yml
52 lines (52 loc) · 1.06 KB
/
example2.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
---
# Web Port Service (perhaps Nginx)
apiVersion: v1
kind: Service
metadata:
labels:
kubernetes.io/cluster-service: 'true'
kubernetes.io/name: monitoring-raven
name: raven-example-web
spec:
# NodePort type allows to expose service outside the cluster
type: LoadBalancer
loadBalancerIP: 10.108.5.2 # test IP
selector:
k8s-app: raven-example-pod
ports:
- name: http
port: 80
targetPort: 8080
#- name: https
# port: 443
# targetPort: 443
---
apiVersion: v1
kind: Pod
metadata:
name: raven-example-pod
labels:
k8s-app: raven-example-pod
spec:
restartPolicy: Never
containers:
- name: raven-example
image: tworavens/summer:latest
ports:
- containerPort: 8080
name: http
protocol: TCP
resources:
requests:
memory: 512Mi
cpu: 1
imagePullSecrets:
- name: regcred
#volumes:
#- name: input-data
# hostPath:
# path: /opt/datasets/seed_datasets_current/
# type: Directory
#- name: output-data
# persistentVolumeClaim:
# claimName: output-pv-claim