aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/nginx/values.schema.json
blob: ccb7bcd848cc832afc6cfc2d0071f7966f09c56f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
  "$schema": "http://json-schema.org/schema#",
  "type": "object",
  "properties": {
    "ingress": {
      "type": "object",
      "form": true,
      "title": "Ingress details",
      "properties": {
        "enabled": {
          "type": "boolean",
          "form": true,
          "title": "Use a custom hostname",
          "description": "Enable the ingress resource that allows you to access the NGINX installation."
        },
        "hostname": {
          "type": "string",
          "form": true,
          "title": "Hostname",
          "hidden": {
            "value": false,
            "path": "ingress/enabled"
          }
        }
      }
    },
    "service": {
      "type": "object",
      "form": true,
      "title": "Service Configuration",
      "properties": {
        "type": {
          "type": "string",
          "form": true,
          "title": "Service Type",
          "description": "Allowed values: \"ClusterIP\", \"NodePort\" and \"LoadBalancer\""
        }
      }
    },
    "replicaCount": {
      "type": "integer",
      "form": true,
      "title": "Number of replicas",
      "description": "Number of replicas to deploy"
    },
    "serverBlock": {
      "type": "string",
      "form": true,
      "title": "Custom server block",
      "description": "Custom server block to be added to NGINX configuration"
    },
    "streamServerBlock": {
      "type": "string",
      "form": true,
      "title": "Custom stream server block",
      "description": "Custom stream server block to be added to NGINX configuration"
    },
    "containerSecurityContext": {
      "type": "object",
      "form": true,
      "title": "NGINX containers' Security Context",
      "properties": {
        "enabled": {
          "type": "boolean",
          "form": true,
          "title": "Enable Security Context",
          "description": "Whether to enable NGINX containers' Security Context"
        },
        "runAsUser": {
          "type": "integer",
          "form": true,
          "title": "ID of the user",
          "description": "The UID of the user NGINX containers will run as"
        }
      }
    },
    "podSecurityContext": {
      "type": "object",
      "form": true,
      "title": "NGINX pods' Security Context",
      "properties": {
        "enabled": {
          "type": "boolean",
          "form": true,
          "title": "Enable Security Context",
          "description": "Whether to enable NGINX pods' Security Context"
        },
        "fsGroup": {
          "type": "integer",
          "form": true,
          "title": "ID of the group",
          "description": "The GID of the group NGINX pods will run as"
        }
      }
    },
    "metrics": {
      "type": "object",
      "form": true,
      "title": "Prometheus metrics details",
      "properties": {
        "enabled": {
          "type": "boolean",
          "title": "Create Prometheus metrics exporter",
          "description": "Create a side-car container to expose Prometheus metrics",
          "form": true
        },
        "serviceMonitor": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "title": "Create Prometheus Operator ServiceMonitor",
              "description": "Create a ServiceMonitor to track metrics using Prometheus Operator",
              "form": true,
              "hidden": {
                "value": false,
                "path": "metrics/enabled"
              }
            }
          }
        }
      }
    }
  }
}