apiVersion: apps/v1
kind: Deployment
metadata:
  name: ical-deployment
spec:
  replicas: 1
  revisionHistoryLimit: 1
  strategy:
    type: RollingUpdate
  selector:
    matchLabels:
      app: ical
  template:
    metadata:
      labels:
        app: ical
    spec:
      containers:
      - name: ical-container
        image: localhost:5000/ical:VERSION
        ports:
        - containerPort: 80
        livenessProbe:
          httpGet:
            path: /health
            port: 80
        readinessProbe:
          httpGet:
            path: /health
            port: 80
        env:
        - name: DEPLOY
          value: VERSION
        - name: SIGNING_SECRET
          value: QqvNDpRMnDvuDZL2xCtVwdNPEX2jYhKyzuX3VzQEdfmruNNysxVRGdWXuin6jhdQ
        - name: ENV
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
