Last active
November 29, 2022 10:47
-
-
Save bechampion/0b9d9a257932f7f6885cc39cdd63b0e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
data: | |
secrets.txt: | | |
HASURA_GRAPHQL_DATABASE_URL="psql://demo:[email protected]/db" | |
kind: ConfigMap | |
metadata: | |
name: argsexample | |
namespace: default | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: argsexample | |
spec: | |
containers: | |
- name: hasura | |
image: hasura/graphql-engine:v2.10.2.cli-migrations-v3.ubuntu | |
command: ["/bin/bash","-xc"] | |
args: ["export $(xargs -a /tmp/dada/secrets.txt) ; graphql-engine serve"] | |
volumeMounts: | |
- name: config-volume | |
mountPath: /tmp/dada | |
volumes: | |
- name: config-volume | |
configMap: | |
name: argsexample | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment