tye/docs/tutorials/hello-tye/redis.yaml

43 строки
826 B
YAML

kind: Deployment
apiVersion: apps/v1
metadata:
name: redis
labels:
app.kubernetes.io/name: redis
app.kubernetes.io/part-of: microservice
spec:
selector:
matchLabels:
app.kubernetes.io/name: redis
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: redis
app.kubernetes.io/part-of: microservice
spec:
containers:
- name: redis
image: redis
resources:
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
name: redis
labels:
app.kubernetes.io/name: redis
app.kubernetes.io/part-of: microservice
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app.kubernetes.io/name: redis