apiVersion: apps/v1
kind: Deployment
metadata:
  name: spring-cloud-config-server
  labels:
    app: spring-cloud-config-server
spec:
  selector:
    matchLabels:
      app: spring-cloud-config-server
  replicas: 1
  template:
    metadata:
      labels:
        app: spring-cloud-config-server
    spec:
      containers:
      - name: spring-cloud-config-server
        image: wenhao/spring-cloud-config-server:1.0.0
        ports:
          - containerPort: 8888
        env:
          - name: EUREKA_URL
            value: "http://spring-cloud-eureka-server.microservice:80/eureka"