consul
This commit is contained in:
commit
90297ec611
28
consul-deployment.yaml
Normal file
28
consul-deployment.yaml
Normal 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
15
consul-service.yaml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user