Last active
April 1, 2018 13:26
-
-
Save dbafromthecold/5becce713b848300fc050d0ee2862166 to your computer and use it in GitHub Desktop.
Sql Server in AKS on non-default port
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/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