Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# creates a deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: gql-server-deployment
labels:
app: simple-graphql-server
spec:
replicas: 3
template:
metadata:
name: simple-graphql-server
labels:
app: simple-graphql-server
spec:
containers:
- name: simple-graphql-server
image: simplegraphqlserveracr.azurecr.io/simple-graphql-server:v2
imagePullPolicy: "Always"
imagePullSecrets:
- name: acr-auth
selector:
matchLabels:
app: simple-graphql-server
---
# exposes deployment as a service
apiVersion: v1
kind: Service
metadata:
name: gql-server-service
spec:
selector:
app: simple-graphql-server
ports:
- port: 4000
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment