0f7cb401ee
Change List * ko: add tutorials/clusters/apparmor #12455 (#14613) * ko: add tasks/access-application-cluster/configure-dns-cluster (#14628) * ko: add tasks/access-application-cluster/communicate-containers-same-… (#14627) * ko: Update outdated files of setup and tasks in dev-1.14-ko.5 partly (#14683) * translate to content/ko/docs/concepts/cluster-administration/cluster-… (#14237) * Update renamed or deleted files in dev-1.14-ko.5 (#14710) * Create pod.md (#13927) Co-Authored-By: Yoon <learder@gmail.com> Co-Authored-By: Woojin Na(Eddie) <kimchigood1130@gmail.com> Co-Authored-By: Claudia J. Kang <claudiajkang@gmail.com>
34 lines
619 B
YAML
34 lines
619 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: redis
|
|
spec:
|
|
containers:
|
|
- name: redis
|
|
image: redis:5.0.4
|
|
command:
|
|
- redis-server
|
|
- "/redis-master/redis.conf"
|
|
env:
|
|
- name: MASTER
|
|
value: "true"
|
|
ports:
|
|
- containerPort: 6379
|
|
resources:
|
|
limits:
|
|
cpu: "0.1"
|
|
volumeMounts:
|
|
- mountPath: /redis-master-data
|
|
name: data
|
|
- mountPath: /redis-master
|
|
name: config
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|
|
- name: config
|
|
configMap:
|
|
name: example-redis-config
|
|
items:
|
|
- key: redis-config
|
|
path: redis.conf
|