Skip to content

Instantly share code, notes, and snippets.

@shalkam
Last active April 2, 2019 14:29
Show Gist options
  • Save shalkam/810c44954bd95c7074cfa9dd60ef8a6e to your computer and use it in GitHub Desktop.
Save shalkam/810c44954bd95c7074cfa9dd60ef8a6e to your computer and use it in GitHub Desktop.
deployment file for prisma
apiVersion: v1
kind: ConfigMap
metadata:
name: prisma-configmap
namespace: prisma
labels:
stage: production
name: prisma
app: prisma
data:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mongo
uri: mongodb://root:rFhW4SVQfZ@mongodb
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prisma
namespace: prisma
labels:
stage: production
name: prisma
app: prisma
spec:
replicas: 1
template:
metadata:
labels:
stage: production
name: prisma
app: prisma
spec:
containers:
- name: prisma
image: 'prismagraphql/prisma:1.29'
ports:
- name: prisma-4466
containerPort: 4466
env:
- name: PRISMA_CONFIG
valueFrom:
configMapKeyRef:
name: prisma-configmap
key: PRISMA_CONFIG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment