Initial commit
This commit is contained in:
commit
c029592583
31 changed files with 39732 additions and 0 deletions
6
charts/pgadmin/Chart.yaml
Normal file
6
charts/pgadmin/Chart.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v2
|
||||
name: pgadmin
|
||||
description: Symcrest pgAdmin chart
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "9.15"
|
||||
42
charts/pgadmin/templates/deployment.yaml
Normal file
42
charts/pgadmin/templates/deployment.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pgadmin
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pgadmin
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pgadmin
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
securityContext:
|
||||
fsGroup: 5050
|
||||
fsGroupChangePolicy: "OnRootMismatch"
|
||||
containers:
|
||||
- name: pgadmin
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
securityContext:
|
||||
runAsUser: 5050
|
||||
runAsGroup: 5050
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: pgadmin-secret
|
||||
env:
|
||||
- name: SCRIPT_NAME
|
||||
value: {{ .Values.route.basePath | quote }}
|
||||
volumeMounts:
|
||||
- name: pgadmin-data
|
||||
mountPath: /var/lib/pgadmin
|
||||
volumes:
|
||||
- name: pgadmin-data
|
||||
persistentVolumeClaim:
|
||||
claimName: pgadmin-data
|
||||
33
charts/pgadmin/templates/httproute.yaml
Normal file
33
charts/pgadmin/templates/httproute.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: {{ .Values.route.name }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: {{ .Values.route.gatewayName }}
|
||||
namespace: {{ .Values.route.gatewayNamespace }}
|
||||
hostnames:
|
||||
{{- range .Values.route.hostnames }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: Exact
|
||||
value: {{ .Values.route.basePath | quote }}
|
||||
filters:
|
||||
- type: RequestRedirect
|
||||
requestRedirect:
|
||||
path:
|
||||
type: ReplaceFullPath
|
||||
replaceFullPath: {{ printf "%s/" .Values.route.basePath | quote }}
|
||||
statusCode: 301
|
||||
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: {{ printf "%s/" .Values.route.basePath | quote }}
|
||||
backendRefs:
|
||||
- name: {{ .Values.route.serviceName }}
|
||||
port: {{ .Values.route.servicePort }}
|
||||
12
charts/pgadmin/templates/pvc.yaml
Normal file
12
charts/pgadmin/templates/pvc.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pgadmin-data
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.storage.className | quote }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.storage.size | quote }}
|
||||
13
charts/pgadmin/templates/service.yaml
Normal file
13
charts/pgadmin/templates/service.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pgadmin
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: pgadmin
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
27
charts/pgadmin/values.yaml
Normal file
27
charts/pgadmin/values.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
namespace: pgadmin
|
||||
|
||||
image:
|
||||
repository: dpage/pgadmin4
|
||||
tag: "9.15"
|
||||
|
||||
auth:
|
||||
email: arvind.prabhakar@symcrest.com
|
||||
secret: postgres-secret
|
||||
|
||||
storage:
|
||||
className: longhorn
|
||||
size: 5Gi
|
||||
|
||||
nodeSelector:
|
||||
workload: app
|
||||
|
||||
route:
|
||||
name: pgadmin
|
||||
gatewayName: public-gateway
|
||||
gatewayNamespace: apps
|
||||
hostnames:
|
||||
- symcrest.com
|
||||
- www.symcrest.com
|
||||
basePath: /internal/dev/pgadmin
|
||||
serviceName: pgadmin
|
||||
servicePort: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue