apiVersion: apps/v1
kind: Deployment
metadata:
  name: islb
spec:
  selector:
    matchLabels:
      name: islb
  replicas: 1
  revisionHistoryLimit: 2
  template:
    metadata:
      labels:
        name: islb
        app: islb
    spec:
      containers:
      - name: islb
        image: pionwebrtc/ion-islb:v0.4.6
        command: ["/usr/local/bin/islb", "-c", "/configs/islb.toml"]
        resources:
          requests:
            cpu: 250m
            memory: 200Mi
          limits:
            cpu: 500m
            memory: 500Mi
        env:
          - name: SERVICE
            value: islb
          - name: NAMESPACE
            valueFrom:
              fieldRef:
                fieldPath: metadata.namespace
        volumeMounts:
        - name: config-volume
          mountPath: /configs/
        
      volumes:
      - name: config-volume
        configMap:
          # Provide the name of the ConfigMap containing the files you want
          # to add to the container
          name: ion-config