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