main
ycz008 2023-07-28 16:42:43 +08:00
parent f199a8492e
commit 1d0782684d
1 changed files with 12 additions and 12 deletions

View File

@ -179,12 +179,12 @@ spec:
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: recruiting-config name: recruit-config
data: data:
application.yml: | application.yml: |
spring: spring:
application: application:
name: recruiting-config name: recruit-config
profiles: profiles:
active: qa active: qa
cloud: cloud:
@ -199,22 +199,22 @@ data:
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: recruiting-config name: recruit-config
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: recruiting-config app: recruit-config
template: template:
metadata: metadata:
labels: labels:
app: recruiting-config app: recruit-config
spec: spec:
imagePullSecrets: imagePullSecrets:
- name: deploy-regcred - name: deploy-regcred
containers: containers:
- name: recruiting-config - name: recruit-config
image: beaconfireiic/recruiting-config:1.1.0-dev image: beaconfireiic/recruit-config:1.1.0-dev
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- name: http - name: http
@ -226,7 +226,7 @@ spec:
- name: "SERVER_PORT" - name: "SERVER_PORT"
value: "8080" value: "8080"
- name: "LOG_APP-NAME" - name: "LOG_APP-NAME"
value: "recruiting-config" value: "recruit-config"
- name: "SPRING_PROFILES_ACTIVE" - name: "SPRING_PROFILES_ACTIVE"
value: "qa" value: "qa"
volumeMounts: volumeMounts:
@ -245,15 +245,15 @@ spec:
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: recruiting-config name: recruit-config
- name: app-logs - name: app-logs
hostPath: hostPath:
path: /data/app_logs/recruiting-config path: /data/app_logs/recruit-config
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: recruiting-config name: recruit-config
spec: spec:
type: ClusterIP type: ClusterIP
ports: ports:
@ -262,4 +262,4 @@ spec:
port: 8080 port: 8080
targetPort: http targetPort: http
selector: selector:
app: recruiting-config app: recruit-config