add updated yaml

This commit is contained in:
Emily Moss 2021-06-23 12:35:07 -07:00
parent 4a95d679ac
commit 0052868617
1 changed files with 8 additions and 8 deletions

View File

@ -46,39 +46,39 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: redis-slave
name: redis-replica
labels:
app: redis
tier: backend
role: slave
role: replica
spec:
ports:
- port: 6379
selector:
app: redis
tier: backend
role: slave
role: replica
---
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
kind: Deployment
metadata:
name: redis-slave
name: redis-replica
spec:
selector:
matchLabels:
app: redis
role: slave
role: replica
tier: backend
replicas: 2
template:
metadata:
labels:
app: redis
role: slave
role: replica
tier: backend
spec:
containers:
- name: slave
- name: replica
image: gcr.io/google_samples/gb-redisslave:v1
resources:
requests:
@ -104,7 +104,7 @@ metadata:
tier: frontend
spec:
# comment or delete the following line if you want to use a LoadBalancer
type: NodePort
type: NodePort
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
# type: LoadBalancer