Skip to content

Instantly share code, notes, and snippets.

@KrustyHack
Created January 12, 2023 09:18
Show Gist options
  • Save KrustyHack/a0ba53fd9b3f17994c9a2b9c215a850c to your computer and use it in GitHub Desktop.
Save KrustyHack/a0ba53fd9b3f17994c9a2b9c215a850c to your computer and use it in GitHub Desktop.

Revisions

  1. KrustyHack created this gist Jan 12, 2023.
    44 changes: 44 additions & 0 deletions deployment.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    # Source: placeholder/templates/deployment.yaml
    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: release-name-placeholder
    labels:
    helm.sh/chart: placeholder-0.1.0
    app.kubernetes.io/name: placeholder
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "latest"
    app.kubernetes.io/managed-by: Helm
    spec:
    replicas: 1
    selector:
    matchLabels:
    app.kubernetes.io/name: placeholder
    app.kubernetes.io/instance: release-name
    template:
    metadata:
    labels:
    app.kubernetes.io/name: placeholder
    app.kubernetes.io/instance: release-name
    spec:
    terminationGracePeriodSeconds: 0
    priorityClassName: placeholder
    containers:
    - name: placeholder
    image: "busybox:latest"
    resources:
    limits:
    cpu: 8
    memory: 16Gi
    requests:
    cpu: 8
    memory: 16Gi
    command: ["/bin/sh"]
    args: ["-c", "sleep infinity"]
    securityContext:
    capabilities:
    drop:
    - ALL
    readOnlyRootFilesystem: true
    runAsNonRoot: true
    runAsUser: 1000