apiVersion: apps/v1
kind: Deployment
metadata:
  name: frontier-squid
  namespace: cvmfs
  labels:
    k8s-app: frontier-squid
spec:
  selector:
    matchLabels:
      k8s-app: frontier-squid
  template:
    metadata: 
      labels:
        k8s-app: frontier-squid
    spec:
      nodeSelector: 
        kubernetes.io/hostname: xcache-11.t2.ucsd.edu
      tolerations:
      - effect: NoSchedule
        key: nautilus.io/noceph
        operator: Exists
      - effect: NoSchedule
        key: nautilus.io/chase-ci
        operator: Exists
      containers:
      - name: frontier-squid
        image: opensciencegrid/frontier-squid:fresh
        imagePullPolicy: Always
        #command: ["sh", "-c", "sleep infinity"]
        resources:
           limits:
             memory: 16Gi
             cpu: 1
           requests:
             memory: 2Gi
             cpu: 1
        env:
        - name: SQUID_IPRANGE
          value: "0.0.0.0/0"
        ports:
        - containerPort: 3128

