k8s
This commit is contained in:
17
k8s/applications/frontend/portal/autoscaler.yaml
Normal file
17
k8s/applications/frontend/portal/autoscaler.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: frontend-portal-hpa-cpu
|
||||
labels:
|
||||
env: production
|
||||
tier: frontend
|
||||
app: portal
|
||||
name: frontend-portal-hpa-cpu
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: frontend-portal-deployment
|
||||
minReplicas: 1
|
||||
maxReplicas: 3
|
||||
targetCPUUtilizationPercentage: 70
|
||||
49
k8s/applications/frontend/portal/deployment.yaml
Normal file
49
k8s/applications/frontend/portal/deployment.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: frontend-portal-deployment
|
||||
annotations:
|
||||
kubernetes.io/change-cause: "Initialized by manifest files."
|
||||
labels:
|
||||
env: production
|
||||
tier: frontend
|
||||
app: portal
|
||||
name: frontend-portal-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
env: production
|
||||
tier: frontend
|
||||
app: portal
|
||||
name: frontend-portal-pod
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
env: production
|
||||
tier: frontend
|
||||
app: portal
|
||||
name: frontend-portal-pod
|
||||
spec:
|
||||
containers:
|
||||
- name: frontend-portal
|
||||
image: egovframe/egovframe-msa-edu-frontend-portal:latest # TODO
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 36
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
18
k8s/applications/frontend/portal/ingress/ingress.yaml
Normal file
18
k8s/applications/frontend/portal/ingress/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: frontend-portal-ingress
|
||||
labels:
|
||||
env: production
|
||||
tier: frontend
|
||||
app: portal
|
||||
name: frontend-portal-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: <프론트엔드 포털 도메인> # TODO
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: frontend-portal
|
||||
servicePort: 3000
|
||||
19
k8s/applications/frontend/portal/service.yaml
Normal file
19
k8s/applications/frontend/portal/service.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: frontend-portal
|
||||
labels:
|
||||
env: production
|
||||
tier: frontend
|
||||
app: portal
|
||||
name: frontend-portal-service
|
||||
spec:
|
||||
ports:
|
||||
- name: frontend-portal-http
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
selector:
|
||||
env: production
|
||||
tier: frontend
|
||||
app: portal
|
||||
name: frontend-portal-pod
|
||||
Reference in New Issue
Block a user