apiVersion: apps/v1
kind: Deployment
metadata:
  name: web-api
  namespace: test-development
  labels:
    app: web-api
spec:
  replicas: 1
  selector:
    matchLabels:
      app: web-api
  template:
    metadata:
      labels:
        app: web-api
    spec:
      containers:
      - name: web-api
        image: registry.digitalocean.com/appneuron-digitalocean/dotnetapi:0.1
        imagePullPolicy: Always
        # env:
        # - name: SeriLogConfigurations.LogstashConfiguration.Host
        #   valueFrom:
        #     configMapKeyRef:
        #       name: app-conn
        #       key: LOGSTASH_HOST
        # - name: MongoDbSettings.Host
        #   valueFrom:
        #     configMapKeyRef:
        #       name: app-conn
        #       key: MONGODB_HOST
        # - name: MongoDbSettings.Password
        #   valueFrom:
        #     secretKeyRef:
        #       name: mongo-mongodb
        #       key: mongodb-root-password
        ports:
        - containerPort: 8000 
