apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: drand-relay-twitter
  name: drand-relay-twitter-deployment
  namespace: drand
spec:
  replicas: 1
  selector:
    matchLabels:
      app: drand-relay-twitter
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: drand-relay-twitter
    spec:
      containers:
      - name: drand-relay-twitter-container
        image: docker.io/alanshaw/drand-relay-twitter
        env:
        - name: TWITTER_API_KEY
          valueFrom:
            secretKeyRef:
              name: drand-relay-twitter-secrets
              key: twitterAPIKey
        - name: TWITTER_API_SECRET
          valueFrom:
            secretKeyRef:
              name: drand-relay-twitter-secrets
              key: twitterAPISecret
        - name: TWITTER_ACCESS_TOKEN
          valueFrom:
            secretKeyRef:
              name: drand-relay-twitter-secrets
              key: twitterAccessToken
        - name: TWITTER_ACCESS_TOKEN_SECRET
          valueFrom:
            secretKeyRef:
              name: drand-relay-twitter-secrets
              key: twitterAccessTokenSecret

  