1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: adm-server
- labels:
- app: adm-server
- spec:
- selector:
- app: adm-server
- ports:
- - port: 8080
- targetPort: 8080
- name: server-port
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: adm-server
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: adm-server
- template:
- metadata:
- labels:
- app: adm-server
- spec:
- containers:
- - name: adm-server
- image: labisenlin.persagy.com/library/adm-server:latest
- imagePullPolicy: Always
- ports:
- - containerPort: 8080
- name: server-port
- env:
- - name: TZ
- value: Asia/Shanghai
- - name: SERVER_PORT
- value: "8080"
- - name: SPRING_CLOUD_CONFIG_URI
- value: "http://integrated-config:8080"
- - name: SPRING_PROFILES_ACTIVE
- value: "dev"
- - name: SPRING_CLOUD_CONFIG_PROFILE
- value: "dev"
- - name: EUREKA_CLIENT_DEFAULT_ZONE
- value: "http://frame:123456@integrated-eureka:8080/integrated-eureka/eureka/"
- - name: logging.config
- value: classpath:logback-spring.xml
- - name: eureka.instance.status-page-url
- value: "http://${eureka.instance.ip-address}:${eureka.instance.non-secure-port}/${spring.application.name}/info"
- - name: eureka.instance.non-secure-port-enabled
- value: "true"
- - name: eureka.instance.ip-address
- value: "adm-server"
- - name: eureka.instance.health-check-url
- value: "http://${eureka.instance.ip-address}:${eureka.instance.non-secure-port}/${spring.application.name}/health"
- - name: eureka.instance.non-secure-port
- value: "8080"
|