Created
November 30, 2020 11:43
-
-
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
This file contains 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: 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