33 lines
670 B
YAML
33 lines
670 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: consul
|
|
labels:
|
|
app: consul
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: consul
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: consul
|
|
spec:
|
|
containers:
|
|
- image: docker.m.daocloud.io/hashicorp/consul:1.20
|
|
name: badger
|
|
ports:
|
|
- containerPort: 8500
|
|
protocol: TCP
|
|
- containerPort: 8600
|
|
protocol: UDP
|
|
resources:
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "250m"
|
|
restartPolicy: Always
|