Skip to content

The deployment with ephemeral-storage limitation would work better #2

Description

@pacoxu
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: keepopendeleted
  name: keepopendeleted
spec:
  replicas: 1
  selector:
    matchLabels:
      app: keepopendeleted
  template:
    metadata:
      labels:
        app: keepopendeleted
    spec:
      containers:
      - args:
        - -location
        - /tmp
        image: ottovsky/keepopendeleted
        name: keepopendeleted
        resources:
          limits:
            ephemeral-storage: 4Gi
          requests:
            ephemeral-storage: 2Gi
        volumeMounts:
        - mountPath: /tmp
          name: ephemeral
      volumes:
      - emptyDir: {}
        name: ephemeral
EOF

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions