mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-12-05 01:29:28 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: graphql
|
||
|
labels:
|
||
|
component: graphql
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
component: graphql
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
component: graphql
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: graphql-engine
|
||
|
image: hasura/graphql-engine:v2.0.0-alpha.5
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
env:
|
||
|
- name: POSTGRES_PASSWORD
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: postgres-env-secret
|
||
|
key: POSTGRES_PASSWORD
|
||
|
- name: HASURA_GRAPHQL_DATABASE_URL
|
||
|
value: postgres://ash:$(POSTGRES_PASSWORD)@postgresql:5432/pokeapi
|
||
|
- name: HASURA_GRAPHQL_ENABLE_CONSOLE
|
||
|
value: "true"
|
||
|
- name: HASURA_GRAPHQL_DEV_MODE
|
||
|
value: "false"
|
||
|
- name: HASURA_GRAPHQL_ENABLED_LOG_TYPES
|
||
|
value: startup, http-log, webhook-log, websocket-log, query-log
|
||
|
- name: HASURA_GRAPHQL_ADMIN_SECRET
|
||
|
value: pokemon
|
||
|
- name: HASURA_GRAPHQL_UNAUTHORIZED_ROLE
|
||
|
value: anon
|
||
|
- name: HASURA_GRAPHQL_ENABLE_TELEMETRY
|
||
|
value: "false"
|
||
|
resources: {}
|
||
|
|