1+ apiVersion : " apps/v1"
2+ kind : " Deployment"
3+ metadata :
4+ labels :
5+ app.kubernetes.io/name : {{ template "postgres-operator-ui.name" . }}
6+ helm.sh/chart : {{ template "postgres-operator-ui.chart" . }}
7+ app.kubernetes.io/managed-by : {{ .Release.Service }}
8+ app.kubernetes.io/instance : {{ .Release.Name }}
9+ name : {{ template "postgres-operator-ui.fullname" . }}
10+ spec :
11+ replicas : 1
12+ selector :
13+ matchLabels :
14+ app.kubernetes.io/name : {{ template "postgres-operator-ui.name" . }}
15+ app.kubernetes.io/instance : {{ .Release.Name }}
16+ template :
17+ metadata :
18+ labels :
19+ app.kubernetes.io/name : {{ template "postgres-operator-ui.name" . }}
20+ app.kubernetes.io/instance : {{ .Release.Name }}
21+ team : " acid" # Parameterize?
22+ spec :
23+ serviceAccountName : {{ template "postgres-operator-ui.name" . }}
24+ containers :
25+ - name : " service"
26+ image : " {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
27+ imagePullPolicy : {{ .Values.image.pullPolicy }}
28+ ports :
29+ - containerPort : 8081
30+ protocol : " TCP"
31+ readinessProbe :
32+ httpGet :
33+ path : " /health"
34+ port : 8081
35+ initialDelaySeconds : 5
36+ timeoutSeconds : 1
37+ resources :
38+ {{- toYaml .Values.resources | nindent 12 }}
39+ env :
40+ - name : " APP_URL"
41+ value : " http://localhost:8081"
42+ - name : " OPERATOR_API_URL"
43+ value : {{ .Values.envs.operatorApiUrl }}
44+ - name : " TARGET_NAMESPACE"
45+ value : {{ .Values.envs.targetNamespace }}
46+ - name : " TEAMS"
47+ value : |-
48+ [
49+ "acid"
50+ ]
51+ - name : " OPERATOR_UI_CONFIG"
52+ value : |-
53+ {
54+ "docs_link":"https://postgres-operator.readthedocs.io/en/latest/",
55+ "dns_format_string": "{1}-{0}.{2}",
56+ "databases_visible": true,
57+ "master_load_balancer_visible": true,
58+ "nat_gateways_visible": false,
59+ "replica_load_balancer_visible": true,
60+ "resources_visible": true,
61+ "users_visible": true,
62+ "postgresql_versions": [
63+ "12",
64+ "11",
65+ "10",
66+ "9.6",
67+ "9.5"
68+ ]
69+ }
0 commit comments