k8s
This commit is contained in:
49
k8s/applications/backend/discovery/deployment.yaml
Normal file
49
k8s/applications/backend/discovery/deployment.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: discovery-deployment
|
||||
annotations:
|
||||
kubernetes.io/change-cause: "Initialized by manifest files."
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: discovery
|
||||
name: discovery-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: discovery
|
||||
name: discovery-pod
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: discovery
|
||||
name: discovery-pod
|
||||
spec:
|
||||
containers:
|
||||
- name: discovery
|
||||
image: egovframe/egovframe-msa-edu-backend-discovery:latest # TODO
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8761
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8761
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 36
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8761
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
18
k8s/applications/backend/discovery/ingress/ingress.yaml
Normal file
18
k8s/applications/backend/discovery/ingress/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: discovery-ingress
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: discovery
|
||||
name: discovery-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: <백엔드 유레카 서버 도메인> # TODO
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: discovery
|
||||
servicePort: 8761
|
||||
18
k8s/applications/backend/discovery/service.yaml
Normal file
18
k8s/applications/backend/discovery/service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: discovery
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: discovery
|
||||
name: discovery-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 8761
|
||||
targetPort: 8761
|
||||
selector:
|
||||
env: production
|
||||
tier: backend
|
||||
app: discovery
|
||||
name: discovery-pod
|
||||
Reference in New Issue
Block a user