ea11ae29ac
* Consolidate YAML files [part-5] This PR relocates the yaml files used in stateless application guestbook. This PR also fixes the list numbering and code block problems in the page. Note that neither code blocks nor note callouts live happily inside a numbered list, so this PR moves them out of such lists. * Update examples_test.go
30 lines
586 B
YAML
30 lines
586 B
YAML
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
|
kind: Deployment
|
|
metadata:
|
|
name: redis-master
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: redis
|
|
role: master
|
|
tier: backend
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: redis
|
|
role: master
|
|
tier: backend
|
|
spec:
|
|
containers:
|
|
- name: master
|
|
image: k8s.gcr.io/redis:e2e # or just image: redis
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
ports:
|
|
- containerPort: 6379
|