apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: microservice-app-example
  name: users-api
spec:
  selector:
    matchLabels:
      service: users-api
  replicas: 1
  template:
    metadata:
      labels:
        service: users-api
    spec:
      containers:
      - env:
        - name: JWT_SECRET
          value: myfancysecret
        - name: SERVER_PORT
          value: "8083"
        - name: SPRING_ZIPKIN_BASE_URL
          value: http://zipkin:9411
        image: users-api
        name: users-api
        ports:
        - containerPort: 8083
        imagePullPolicy: IfNotPresent
      restartPolicy: Always
