add service

main
ycz008 2023-07-24 17:02:11 +08:00
parent 156515700c
commit 0019afe4f9
6 changed files with 310 additions and 7 deletions

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: admin-console
spec:
replicas: 1
selector:
matchLabels:
app: admin-console
template:
metadata:
labels:
app: admin-console
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: admin-console
image: beaconfireiic/admin-console:1.0.0-prod
command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.adminconsole.AdminConsoleApplication"]
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: "admin-console"
- 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/admin-console
---
apiVersion: v1
kind: Service
metadata:
name: admin-console
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: admin-console

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-middleware
spec:
replicas: 1
selector:
matchLabels:
app: auth-middleware
template:
metadata:
labels:
app: auth-middleware
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: auth-middleware
image: beaconfireiic/auth-middleware:1.1.0-6-dev
command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.authmiddleware.AuthMiddlewareApplication"]
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-middleware"
- 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-middleware
---
apiVersion: v1
kind: Service
metadata:
name: auth-middleware
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: auth-middleware

View File

@ -1,10 +1,3 @@
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: auth
# data:
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: beaconfire-auth
spec:
replicas: 1
selector:
matchLabels:
app: beaconfire-auth
template:
metadata:
labels:
app: beaconfire-auth
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: beaconfire-auth
image: beaconfireiic/beaconfire-auth:1.0.0-3-dev
command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.beaconfireauth.BeaconfireAuthApplication"]
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: "beaconfire-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/beaconfire-auth
---
apiVersion: v1
kind: Service
metadata:
name: beaconfire-auth
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: beaconfire-auth

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: file-service
spec:
replicas: 1
selector:
matchLabels:
app: file-service
template:
metadata:
labels:
app: file-service
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: file-service
image: beaconfireiic/file-service:1.0.0-prod
command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.fileservice.FileServiceApplication"]
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: "file-service"
- 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/file-service
---
apiVersion: v1
kind: Service
metadata:
name: file-service
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: file-service

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: oauth-service
spec:
replicas: 1
selector:
matchLabels:
app: oauth-service
template:
metadata:
labels:
app: oauth-service
spec:
imagePullSecrets:
- name: deploy-regcred
containers:
- name: oauth-service
image: beaconfireiic/oauth-service:1.0.0-dev
command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.oauthservice.OauthServiceApplication"]
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: "oauth-service"
- 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/oauth-service
---
apiVersion: v1
kind: Service
metadata:
name: oauth-service
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: http
selector:
app: oauth-service