apiVersion: apps/v1
kind: Deployment
metadata:
  name: newrelic-hook-controller
  labels:
    app: newrelic-hook-controller
spec:
  replicas: 1
  selector:
    matchLabels:
      app: newrelic-hook-controller
  template:
    metadata:
      labels:
        app: newrelic-hook-controller
    spec:
      containers:
      - image: newrelic-hook-controller:latest # To be defined eventually
        imagePullPolicy: Always
        name: newrelic-hook-controller
        env:
          - name: NEW_RELIC_LICENSE_KEY
            valueFrom: 
              secretKeyRef:
                key: license-key
                name: newrelic-secret
        resources:
          limits:
            cpu: 100m
            memory: 200Mi
          requests:
            cpu: 10m
            memory: 100Mi