Skip to content

Instantly share code, notes, and snippets.

@scriptonist
Created August 26, 2020 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scriptonist/89114a3551e7a5c868ce5c56f14262f5 to your computer and use it in GitHub Desktop.
Save scriptonist/89114a3551e7a5c868ce5c56f14262f5 to your computer and use it in GitHub Desktop.
Hasura Downgrader
apiVersion: batch/v1
kind: Job
metadata:
labels:
app: hasura
hasuraService: custom
name: hasura
namespace: hasura
spec:
template:
spec:
containers:
- image: hasura/graphql-engine:v1.3.0
imagePullPolicy: IfNotPresent
name: hasura-downgrader
env:
- name: HASURA_GRAPHQL_DATABASE_URL
value: postgres://jdugpkuqhqwnws:0e6dadbf63ac9265da344f020f88c58a56a908bd71987fc9ff412da09bebe437@ec2-107-20-104-234.compute-1.amazonaws.com:5432/db78guei888o65
## enable the console served by server
- name: HASURA_GRAPHQL_ENABLED_LOG_TYPES
value: "startup, http-log, webhook-log, websocket-log, query-log"
- name: HASURA_GRAPHQL_LOG_LEVEL
value: debug
- name: HASURA_GRAPHQL_ENABLE_CONSOLE
value: "true"
command: ["graphql-engine", "downgrade", "--to-v1.2.1"]
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment