62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: iloom-frontend
|
||
|
|
namespace: iloom
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
ports:
|
||
|
|
- port: 3015
|
||
|
|
targetPort: 3015
|
||
|
|
selector:
|
||
|
|
app: iloom-frontend
|
||
|
|
---
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: iloom-frontend
|
||
|
|
namespace: iloom
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app: iloom-frontend
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: iloom-frontend
|
||
|
|
spec:
|
||
|
|
imagePullSecrets:
|
||
|
|
- name: harbor-pull-secret
|
||
|
|
containers:
|
||
|
|
- name: frontend
|
||
|
|
image: harbor-in-k3s.cheverjohn.me/iloom/iloom-frontend:v1
|
||
|
|
ports:
|
||
|
|
- containerPort: 3015
|
||
|
|
volumeMounts:
|
||
|
|
- name: nginx-config
|
||
|
|
mountPath: /etc/nginx/conf.d
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 25m
|
||
|
|
memory: 32Mi
|
||
|
|
limits:
|
||
|
|
cpu: 100m
|
||
|
|
memory: 64Mi
|
||
|
|
readinessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /
|
||
|
|
port: 3015
|
||
|
|
initialDelaySeconds: 5
|
||
|
|
periodSeconds: 10
|
||
|
|
livenessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /
|
||
|
|
port: 3015
|
||
|
|
initialDelaySeconds: 10
|
||
|
|
periodSeconds: 30
|
||
|
|
volumes:
|
||
|
|
- name: nginx-config
|
||
|
|
configMap:
|
||
|
|
name: iloom-frontend-nginx
|