apiVersion: apps/v1
kind: Deployment
metadata:
  name: spring-cloud-ribbon-deployment
  labels:
    app: spring-cloud-ribbon
spec:
  selector:
    matchLabels:
      app: spring-cloud-ribbon
  replicas: 1
  template:
    metadata:
      labels:
        app: spring-cloud-ribbon
    spec:
      containers:
        - name: ribbon
          image: wenhao/spring-cloud-ribbon:v1.0.0
          ports:
            - containerPort: 8080
          env:
            - name: EUREKA_URL
              value: "http://spring-cloud-eureka-server-service:80/eureka/"
