generated from keptn-sandbox/keptn-service-template-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.yaml
67 lines (66 loc) · 1.69 KB
/
service.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
---
# Deployment of our keptn-service-template-go
apiVersion: apps/v1
kind: Deployment
metadata:
name: keptn-service-template-go
namespace: keptn
spec:
selector:
matchLabels:
run: keptn-service-template-go
replicas: 1
template:
metadata:
labels:
run: keptn-service-template-go
spec:
containers:
- name: keptn-service-template-go
image: keptnsandbox/keptn-service-template-go:latest # Todo: Replace this with your image name
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 keptn-service-template-go via Port 8080 within the cluster
apiVersion: v1
kind: Service
metadata:
name: keptn-service-template-go
namespace: keptn
labels:
run: keptn-service-template-go
spec:
ports:
- port: 8080
protocol: TCP
selector:
run: keptn-service-template-go