Skip to content
Snippets Groups Projects
Commit 474a41a7 authored by Xavier Perret's avatar Xavier Perret
Browse files

bim

parent 4a913086
No related branches found
No related tags found
1 merge request!2added file to separate client function from the server
apiVersion: v1
kind: Pod
metadata:
name: api
labels:
component: api
app: todo
spec:
containers:
- name: api
image: icclabcna/ccp2-k8s-todo-api
ports:
- containerPort: 8081
resources:
limits:
cpu: 100m
env:
- name: REDIS_ENDPOINT
value: redis-svc
- name: REDIS_PWD
value: ccp2
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-deploy
labels:
app: todo
spec:
replicas: 1
selector:
matchLabels:
app: todo
template:
metadata:
name: redis
labels:
component: redis
app: todo
spec:
containers:
- name: redis
image: redis
ports:
- containerPort: 6379
resources:
limits:
cpu: 100m
args:
- redis-server
- --requirepass ccp2
- --appendonly yes
\ No newline at end of file
apiVersion: v1
kind: Pod
metadata:
name: redis-pod
labels:
component: redis
app: todo
spec:
containers:
- name: redis-container
image: redis
ports:
- containerPort: 6379
resources:
limits:
cpu: 100m
args:
- redis-server
- --requirepass ccp2
- --appendonly yes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment