github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/scanners/helm/test/testdata/expected/testchart/templates/deployment.yaml (about)

     1  # Source: testchart/templates/deployment.yaml
     2  apiVersion: apps/v1
     3  kind: Deployment
     4  metadata:
     5    name: testchart
     6    labels:
     7      helm.sh/chart: testchart-0.1.0
     8      app.kubernetes.io/name: testchart
     9      app.kubernetes.io/instance: testchart
    10      app.kubernetes.io/version: "1.16.0"
    11      app.kubernetes.io/managed-by: Helm
    12  spec:
    13    replicas: 1
    14    selector:
    15      matchLabels:
    16        app.kubernetes.io/name: testchart
    17        app.kubernetes.io/instance: testchart
    18    template:
    19      metadata:
    20        labels:
    21          app.kubernetes.io/name: testchart
    22          app.kubernetes.io/instance: testchart
    23      spec:
    24        serviceAccountName: testchart
    25        securityContext:
    26          {}
    27        containers:
    28          - name: testchart
    29            securityContext:
    30              {}
    31            image: "nginx:1.16.0"
    32            imagePullPolicy: IfNotPresent
    33            ports:
    34              - name: http
    35                containerPort: 80
    36                protocol: TCP
    37            livenessProbe:
    38              httpGet:
    39                path: /
    40                port: http
    41            readinessProbe:
    42              httpGet:
    43                path: /
    44                port: http
    45            resources:
    46              {}