---
# Source: nginx/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: nginx
  namespace: default
  labels:
    app.kubernetes.io/instance: nginx
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: nginx
    app.kubernetes.io/version: 1.31.3
    helm.sh/chart: nginx-0.16.1
automountServiceAccountToken: false
---
# Source: nginx/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
  name: nginx
  namespace: default
  labels:
    app.kubernetes.io/instance: nginx
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: nginx
    app.kubernetes.io/version: 1.31.3
    helm.sh/chart: nginx-0.16.1
spec:
  type: ClusterIP
  ports:
    - port: 80
      targetPort: http
      protocol: TCP
      name: http
  selector:
    app.kubernetes.io/instance: nginx
    app.kubernetes.io/name: nginx
  internalTrafficPolicy: Cluster
---
# Source: nginx/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
  namespace: default
  labels:
    app.kubernetes.io/instance: nginx
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: nginx
    app.kubernetes.io/version: 1.31.3
    helm.sh/chart: nginx-0.16.1
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/instance: nginx
      app.kubernetes.io/name: nginx
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: nginx
        app.kubernetes.io/name: nginx
    spec:
      serviceAccountName: nginx
      securityContext:
        fsGroup: 101
      containers:
        - name: nginx
          securityContext:
            allowPrivilegeEscalation: false
            runAsNonRoot: true
            runAsUser: 101
          image: "docker.io/nginx:1.31.3-alpine@sha256:4a73073bd557c65b759505da037898b61f1be6cbcc3c2c3aeac22d2a470c1752"
          imagePullPolicy: Always
          ports:
            - name: http
              containerPort: 80
              protocol: TCP
          livenessProbe:
            tcpSocket:
              port: http
            initialDelaySeconds: 30
            periodSeconds: 10
            timeoutSeconds: 5
            failureThreshold: 3
            successThreshold: 1
          readinessProbe:
            tcpSocket:
              port: http
            initialDelaySeconds: 5
            periodSeconds: 5
            timeoutSeconds: 5
            failureThreshold: 3
            successThreshold: 1
          resources:
            {}
          volumeMounts:
            - name: emptydir
              mountPath: /tmp
              subPath: tmp-dir
            - name: emptydir
              mountPath: /run
              subPath: run-dir
            - name: emptydir
              mountPath: /var/cache/nginx/client_temp
              subPath: client-temp-dir
            - name: emptydir
              mountPath: /var/cache/nginx/proxy_temp
              subPath: proxy-temp-dir
            - name: emptydir
              mountPath: /var/cache/nginx/fastcgi_temp
              subPath: fastcgi-temp-dir
            - name: emptydir
              mountPath: /var/cache/nginx/uwsgi_temp
              subPath: uwsgi-temp-dir
            - name: emptydir
              mountPath: /var/cache/nginx/scgi_temp
              subPath: scgi-temp-dir
      volumes:
        - name: emptydir
          emptyDir: {}
