megfederáltam

This commit is contained in:
Pünkösd Marcell 2021-12-14 03:44:47 +01:00
parent 193d28bad9
commit f8eaabd885

View File

@ -1,9 +1,10 @@
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: FederatedDeployment
metadata: metadata:
name: controller-redis name: controller-redis
spec: spec:
template:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
@ -16,12 +17,18 @@ spec:
containers: containers:
- name: controller-redis - name: controller-redis
image: redis image: redis
placement:
clusters:
- name: cloud
- name: edge-1
- name: edge-2
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: FederatedService
metadata: metadata:
name: controller-redis name: controller-redis
spec: spec:
template:
selector: selector:
app: controller-redis app: controller-redis
ports: ports:
@ -29,3 +36,8 @@ spec:
protocol: TCP protocol: TCP
port: 6379 port: 6379
targetPort: 6379 targetPort: 6379
placement:
clusters:
- name: cloud
- name: edge-1
- name: edge-2