1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: dmp-org
- labels:
- app: dmp-org
- spec:
- selector:
- app: dmp-org
- ports:
- - port: 8831
- targetPort: 8831
- name: server-port
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: dmp-org
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: dmp-org
- template:
- metadata:
- labels:
- app: dmp-org
- spec:
- containers:
- - name: dmp-org
- image: labisenlin.persagy.com/library/dmp-org:latest
- imagePullPolicy: Always
- ports:
- - containerPort: 8831
- name: server-port
- env:
- - name: TZ
- value: Asia/Shanghai
- - name: SERVER_PORT
- value: "8831"
- - name: SPRING_CLOUD_CONFIG_URI
- valueFrom:
- configMapKeyRef:
- name: dmp-org
- key: spring.cloud.config.uri
- - name: SPRING_PROFILES_ACTIVE
- valueFrom:
- configMapKeyRef:
- name: dmp-org
- key: spring.profiles.active
- - name: SPRING_CLOUD_CONFIG_PROFILE
- valueFrom:
- configMapKeyRef:
- name: dmp-org
- key: spring.cloud.config.profile
- - name: EUREKA_CLIENT_FETCH_REGISTRY
- valueFrom:
- configMapKeyRef:
- name: dmp-org
- key: eureka.client.fetch-registry
- - name: EUREKA_CLIENT_REGISTER_WITH_EUREKA
- valueFrom:
- configMapKeyRef:
- name: dmp-org
- key: eureka.client.register-with-eureka
- - name: EUREKA_CLIENT_DEFAULT_ZONE
- valueFrom:
- configMapKeyRef:
- name: dmp-org
- key: eureka.client.default.zone
- - name: EUREKA_INSTANCE_IP_ADDRESS
- valueFrom:
- configMapKeyRef:
- name: dmp-org
- key: eureka.instance.ip.address
|