mirror of
https://github.com/bitinflow/laravel-docker-k8s.git
synced 2026-03-13 13:35:52 +00:00
remove redis yaml files
This commit is contained in:
@@ -1,38 +0,0 @@
|
|||||||
apiVersion: apps/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: redis-master
|
|
||||||
namespace: hermes
|
|
||||||
# these labels can be applied automatically
|
|
||||||
# from the labels in the pod template if not set
|
|
||||||
# labels:
|
|
||||||
# app: redis
|
|
||||||
# role: master
|
|
||||||
# tier: backend
|
|
||||||
spec:
|
|
||||||
# this replicas value is default
|
|
||||||
# modify it according to your case
|
|
||||||
replicas: 1
|
|
||||||
# selector can be applied automatically
|
|
||||||
# from the labels in the pod template if not set
|
|
||||||
# selector:
|
|
||||||
# matchLabels:
|
|
||||||
# app: guestbook
|
|
||||||
# role: master
|
|
||||||
# tier: backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: redis
|
|
||||||
role: master
|
|
||||||
tier: backend
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: master
|
|
||||||
image: gcr.io/google_containers/redis:e2e # or just image: redis
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 100Mi
|
|
||||||
ports:
|
|
||||||
- containerPort: 6379
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: redis-master
|
|
||||||
namespace: hermes
|
|
||||||
labels:
|
|
||||||
app: redis
|
|
||||||
role: master
|
|
||||||
tier: backend
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
# the port that this service should serve on
|
|
||||||
- port: 6379
|
|
||||||
targetPort: 6379
|
|
||||||
selector:
|
|
||||||
app: redis
|
|
||||||
role: master
|
|
||||||
tier: backend
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
apiVersion: apps/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: redis-slave
|
|
||||||
namespace: hermes
|
|
||||||
# these labels can be applied automatically
|
|
||||||
# from the labels in the pod template if not set
|
|
||||||
# labels:
|
|
||||||
# app: redis
|
|
||||||
# role: slave
|
|
||||||
# tier: backend
|
|
||||||
spec:
|
|
||||||
# this replicas value is default
|
|
||||||
# modify it according to your case
|
|
||||||
replicas: 1
|
|
||||||
# selector can be applied automatically
|
|
||||||
# from the labels in the pod template if not set
|
|
||||||
# selector:
|
|
||||||
# matchLabels:
|
|
||||||
# app: guestbook
|
|
||||||
# role: slave
|
|
||||||
# tier: backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: redis
|
|
||||||
role: slave
|
|
||||||
tier: backend
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: slave
|
|
||||||
image: gcr.io/google_samples/gb-redisslave:v1
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 100Mi
|
|
||||||
env:
|
|
||||||
- name: GET_HOSTS_FROM
|
|
||||||
value: dns
|
|
||||||
# If your cluster config does not include a dns service, then to
|
|
||||||
# instead access an environment variable to find the master
|
|
||||||
# service's host, comment out the 'value: dns' line above, and
|
|
||||||
# uncomment the line below.
|
|
||||||
# value: env
|
|
||||||
ports:
|
|
||||||
- containerPort: 6379
|
|
||||||
Reference in New Issue
Block a user