Skip to content

Instantly share code, notes, and snippets.

@dbafromthecold
Last active April 1, 2018 13:26
Show Gist options
  • Save dbafromthecold/5becce713b848300fc050d0ee2862166 to your computer and use it in GitHub Desktop.
Save dbafromthecold/5becce713b848300fc050d0ee2862166 to your computer and use it in GitHub Desktop.
Sql Server in AKS on non-default port
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sqlserver
labels:
app: sqlserver
spec:
replicas: 1
template:
metadata:
labels:
name: sqlserver
spec:
containers:
- name: sqlserver1
image: microsoft/mssql-server-linux:latest
ports:
- containerPort: 4433
env:
- name: SA_PASSWORD
value: "Testing1122"
- name: ACCEPT_EULA
value: "Y"
- name: MSSQL_TCP_PORT
value: "4433"
---
apiVersion: v1
kind: Service
metadata:
name: sqlserver-service
spec:
ports:
- name: sqlserver
port: 4433
targetPort: 4433
selector:
name: sqlserver
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment