-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.yaml
More file actions
67 lines (67 loc) · 1.59 KB
/
service.yaml
File metadata and controls
67 lines (67 loc) · 1.59 KB
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
---
# Deployment of our onechart-service
apiVersion: apps/v1
kind: Deployment
metadata:
name: onechart-service
namespace: keptn
spec:
selector:
matchLabels:
run: onechart-service
replicas: 1
template:
metadata:
labels:
run: onechart-service
spec:
containers:
- name: onechart-service
image: gimletio/onechart-service:dev
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: CONFIGURATION_SERVICE
value: 'http://configuration-service:8080'
- name: distributor
image: keptn/distributor:0.8.0-alpha
livenessProbe:
httpGet:
path: /health
port: 10999
initialDelaySeconds: 5
periodSeconds: 5
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: "16Mi"
cpu: "25m"
limits:
memory: "128Mi"
cpu: "250m"
env:
- name: PUBSUB_URL
value: 'nats://keptn-nats-cluster'
- name: PUBSUB_TOPIC
value: 'sh.keptn.>'
- name: PUBSUB_RECIPIENT
value: '127.0.0.1'
serviceAccountName: keptn-default
---
# Expose onechart-service via Port 8080 within the cluster
apiVersion: v1
kind: Service
metadata:
name: onechart-service
namespace: keptn
labels:
run: onechart-service
spec:
ports:
- port: 8080
protocol: TCP
selector:
run: onechart-service