k8s
This commit is contained in:
55
k8s/environments/rabbitmq/deployment.yaml
Normal file
55
k8s/environments/rabbitmq/deployment.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: rabbitmq-deployment
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: rabbitmq
|
||||
name: rabbitmq-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: rabbitmq
|
||||
name: rabbitmq-pod
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: rabbitmq
|
||||
name: rabbitmq-pod
|
||||
spec:
|
||||
containers:
|
||||
- name: rabbitmq
|
||||
image: rabbitmq:management
|
||||
ports:
|
||||
- containerPort: 5672
|
||||
name: http-5672
|
||||
- containerPort: 15672
|
||||
name: http-15672
|
||||
env:
|
||||
- name: TZ
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: common-configmap
|
||||
key: TZ
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 15672
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 36
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 15672
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
18
k8s/environments/rabbitmq/ingress/ingress.yaml
Normal file
18
k8s/environments/rabbitmq/ingress/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: rabbitmq-ingress
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: rabbitmq
|
||||
name: rabbitmq-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: <RabbitMQ 도메인> # TODO
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: rabbitmq
|
||||
servicePort: 15672
|
||||
24
k8s/environments/rabbitmq/service.yaml
Normal file
24
k8s/environments/rabbitmq/service.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: rabbitmq
|
||||
name: rabbitmq-service
|
||||
spec:
|
||||
selector:
|
||||
env: production
|
||||
tier: backend
|
||||
app: rabbitmq
|
||||
name: rabbitmq-pod
|
||||
ports:
|
||||
- name: http-5672
|
||||
protocol: TCP
|
||||
port: 5672
|
||||
targetPort: 5672
|
||||
- name: http-15672
|
||||
protocol: TCP
|
||||
port: 15672
|
||||
targetPort: 15672
|
||||
Reference in New Issue
Block a user