feat(supabase): add services and statefulset for database management
feat(synapse): update ingress to use traefik ingress class and bump version feat(syncthing-discovery): introduce syncthing discovery service with deployment and ingress feat(syncthing-relay): add syncthing relay server with deployment and ingress configuration fix(taiga): update liveness and readiness probes to use tcpSocket for health checks fix(taiga): change PVC access mode to ReadWriteMany for media and static storage feat(traefik): add icon and ignore rules for traefik service docs(ushahidi): add notes for Redis configuration and Laravel startup probe adjustments feat(ushahidi): implement dedicated Redis deployment for Ushahidi fix(vllm): update deployment strategy and readiness/liveness probes for improved stability fix(writefreely): pin writefreely image version to v0.15.1 for consistency docs(zulip): add notes for TLS-terminating reverse proxy configuration and expected behavior
This commit is contained in:
90
supabase/versions/1/deployment-kong.yaml
Normal file
90
supabase/versions/1/deployment-kong.yaml
Normal file
@@ -0,0 +1,90 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: supabase-kong
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
component: kong
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
component: kong
|
||||
spec:
|
||||
containers:
|
||||
- name: kong
|
||||
image: kong/kong:3.4.2
|
||||
command: ["/bin/sh", "/home/kong/kong-entrypoint.sh"]
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
- containerPort: 8443
|
||||
env:
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: "/usr/local/kong/lib"
|
||||
- name: KONG_DATABASE
|
||||
value: "off"
|
||||
- name: KONG_DECLARATIVE_CONFIG
|
||||
value: /usr/local/kong/kong.yml
|
||||
- name: KONG_DNS_ORDER
|
||||
value: LAST,A,CNAME
|
||||
- name: KONG_DNS_NOT_FOUND_TTL
|
||||
value: "1"
|
||||
- name: KONG_PLUGINS
|
||||
value: request-transformer,cors,key-auth,acl,basic-auth,request-termination,ip-restriction,post-function
|
||||
- name: KONG_NGINX_PROXY_PROXY_BUFFER_SIZE
|
||||
value: 160k
|
||||
- name: KONG_NGINX_PROXY_PROXY_BUFFERS
|
||||
value: 64 160k
|
||||
- name: KONG_PROXY_ACCESS_LOG
|
||||
value: /dev/stdout combined
|
||||
- name: SUPABASE_ANON_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: supabase-secrets
|
||||
key: anonKey
|
||||
- name: SUPABASE_SERVICE_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: supabase-secrets
|
||||
key: serviceRoleKey
|
||||
- name: DASHBOARD_USERNAME
|
||||
value: "{{ .dashboardUsername }}"
|
||||
- name: DASHBOARD_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: supabase-secrets
|
||||
key: dashboardPassword
|
||||
volumeMounts:
|
||||
- name: kong-config
|
||||
mountPath: /home/kong/temp.yml
|
||||
subPath: kong.yml
|
||||
- name: kong-config
|
||||
mountPath: /home/kong/kong-entrypoint.sh
|
||||
subPath: kong-entrypoint.sh
|
||||
- name: kong-output
|
||||
mountPath: /usr/local/kong
|
||||
livenessProbe:
|
||||
exec:
|
||||
command: ["kong", "health"]
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["kong", "health"]
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
resources:
|
||||
requests:
|
||||
memory: 256Mi
|
||||
cpu: 100m
|
||||
volumes:
|
||||
- name: kong-config
|
||||
configMap:
|
||||
name: supabase-kong-config
|
||||
- name: kong-output
|
||||
emptyDir: {}
|
||||
Reference in New Issue
Block a user