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