OKR/dev-upgrade/sevice-group/auth.yaml

62 lines
1.4 KiB
YAML
Raw Normal View History

2023-07-14 15:06:26 +08:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth
spec:
replicas: 1
selector:
matchLabels:
app: auth
template:
metadata:
labels:
app: auth
spec:
imagePullSecrets:
2023-07-14 15:28:02 +08:00
- name: deploy-regcred
2023-07-14 15:06:26 +08:00
containers:
- name: auth
2023-07-14 18:35:17 +08:00
image: beaconfireiic/auth:1.1.1-sdet
2023-07-14 15:24:10 +08:00
command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.auth.AuthApplication"]
2023-07-14 15:06:26 +08:00
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
env:
- name: "LOGGING_LEVEL_ROOT"
value: "info"
- name: "SERVER_PORT"
value: "8080"
- name: "LOG_APP-NAME"
value: "auth"
- name: "SPRING_PROFILES_ACTIVE"
value: "dev"
volumeMounts:
- name: app-logs
mountPath: /logs
resources:
requests:
cpu: 0.1
memory: 128Mi
limits:
cpu: 1
memory: 2Gi
volumes:
- name: app-logs
hostPath:
path: /data/app_logs/auth
---
apiVersion: v1
kind: Service
metadata:
name: auth
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: auth