This commit is contained in:
suyiiyii 2025-01-19 23:02:50 +08:00
commit 90297ec611
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85
2 changed files with 43 additions and 0 deletions

28
consul-deployment.yaml Normal file
View File

@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: consul
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: consul
template:
metadata:
spec:
containers:
- image: 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

15
consul-service.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: consul
spec:
ports:
- name: "8500"
port: 8500
targetPort: 8500
- name: "8600"
port: 8600
protocol: UDP
targetPort: 8600
selector:
io.kompose.service: consul