-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s.yml
42 lines (42 loc) · 989 Bytes
/
k8s.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
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: demo-cflt-bike-rental
namespace: demo-cflt-bike-rental
spec:
replicas: 1
selector:
matchLabels:
demo: cflt-bike-rental
serviceName: demo
template:
metadata:
labels:
demo: cflt-bike-rental
spec:
volumes:
- name: config-volume
secret:
secretName: bike-rental-secret
items:
- key: secret.properties
path: secret.properties
containers:
- image: DOCKER_IMAGE
imagePullPolicy: Always
name: demo
volumeMounts:
- name: config-volume
mountPath: secret.properties
subPath: secret.properties
ports:
- containerPort: 9001
protocol: TCP
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 512Mi