apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample-eventhub
  namespace: function-prod
  labels:
    app: sample-eventhub
spec:
  selector:
    matchLabels:
      app: sample-eventhub
  template:
    metadata:
      labels:
        app: sample-eventhub
    spec:
      containers:
      - name: sample-eventhub
        image: mikkelhegn/sample-eventhub:latest
        imagePullPolicy: Always
        env:
        - name: AzureFunctionsJobHost__functions__0
          value: EventHubTrigger
        envFrom:
        - secretRef:
            name: sample-eventhub