Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
21 results

nginx-proxy.manifest.j2

Blame
  • nginx-proxy.manifest.j2 1.24 KiB
    apiVersion: v1
    kind: Pod
    metadata:
      name: nginx-proxy
      namespace: kube-system
      labels:
        addonmanager.kubernetes.io/mode: Reconcile
        k8s-app: kube-nginx
      annotations:
        nginx-cfg-checksum: "{{ nginx_stat.stat.checksum }}"
    spec:
      hostNetwork: true
      dnsPolicy: ClusterFirstWithHostNet
      nodeSelector:
        beta.kubernetes.io/os: linux
    {% if kube_version is version('v1.11.1', '>=') %}
      priorityClassName: system-node-critical
    {% endif %}
      containers:
      - name: nginx-proxy
        image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
        imagePullPolicy: {{ k8s_image_pull_policy }}
        resources:
          requests:
            cpu: {{ loadbalancer_apiserver_cpu_requests }}
            memory: {{ loadbalancer_apiserver_memory_requests }}
        securityContext:
          privileged: true
        {% if loadbalancer_apiserver_healthcheck_port is defined -%}
        livenessProbe:
          httpGet:
            path: /healthz
            port: {{ loadbalancer_apiserver_healthcheck_port }}
        readinessProbe:
          httpGet:
            path: /healthz
            port: {{ loadbalancer_apiserver_healthcheck_port }}
        {% endif -%}
        volumeMounts:
        - mountPath: /etc/nginx
          name: etc-nginx
          readOnly: true
      volumes:
      - name: etc-nginx
        hostPath:
          path: {{ nginx_config_dir }}