-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s.yaml
41 lines (41 loc) · 807 Bytes
/
k8s.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
apiVersion: v1
kind: ConfigMap
metadata:
name: redis-config
annotations:
kapp.k14s.io/versioned: ""
data:
redis-config: |
maxmemory 3mb
maxmemory-policy allkeys-lru
---
apiVersion: v1
kind: Pod
metadata:
name: redis
annotations:
#! Use replace strategy since Pod cannot be modified "meaningfully"
kapp.k14s.io/update-strategy: fallback-on-replace
spec:
containers:
- name: redis
image: k8s.gcr.io/redis:e2e
ports:
- containerPort: 6379
resources:
limits:
cpu: 100m
volumeMounts:
- mountPath: /redis-data
name: data
- mountPath: /redis-config
name: config
volumes:
- name: data
emptyDir: {}
- name: config
configMap:
name: redis-config
items:
- key: redis-config
path: redis.conf