Skip to content

Instantly share code, notes, and snippets.

@dbafromthecold
Created November 30, 2020 11:43
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 dbafromthecold/1a78438bc408406f341be4ac0774c2aa to your computer and use it in GitHub Desktop.
Save dbafromthecold/1a78438bc408406f341be4ac0774c2aa to your computer and use it in GitHub Desktop.
Yaml file to deploy Azure SQL Edge and expose with a load balanced service
apiVersion: apps/v1
kind: Deployment
metadata:
name: sqledge-deployment
spec:
replicas: 1
selector:
matchLabels:
app: sqledge
template:
metadata:
labels:
app: sqledge
spec:
containers:
- name: azuresqledge
image: mcr.microsoft.com/azure-sql-edge:latest
ports:
- containerPort: 1433
env:
- name: MSSQL_PID
value: "Developer"
- name: ACCEPT_EULA
value: "Y"
- name: SA_PASSWORD
value: "Testing1122"
- name: MSSQL_AGENT_ENABLED
value: "TRUE"
- name: MSSQL_COLLATION
value: "SQL_Latin1_General_CP1_CI_AS"
- name: MSSQL_LCID
value: "1033"
terminationGracePeriodSeconds: 30
securityContext:
fsGroup: 10001
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: sqledge-deployment
spec:
ports:
- port: 1433
protocol: TCP
targetPort: 1433
selector:
app: sqledge
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment