commit 90297ec6116886aecc2fbcf92276c8822059f941 Author: suyiiyii Date: Sun Jan 19 23:02:50 2025 +0800 consul diff --git a/consul-deployment.yaml b/consul-deployment.yaml new file mode 100644 index 0000000..32a6735 --- /dev/null +++ b/consul-deployment.yaml @@ -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 diff --git a/consul-service.yaml b/consul-service.yaml new file mode 100644 index 0000000..ba02fd6 --- /dev/null +++ b/consul-service.yaml @@ -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