-
-
Save nocentino/e2093d57d139ad70d75228c0ef485501 to your computer and use it in GitHub Desktop.
SQL Server Deployment with Trace Flags
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: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: mssql-data | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 8Gi | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: mssql-deployment | |
spec: | |
replicas: 1 | |
strategy: | |
type: Recreate | |
selector: | |
matchLabels: | |
app: mssql | |
template: | |
metadata: | |
labels: | |
app: mssql | |
spec: | |
terminationGracePeriodSeconds: 30 | |
hostname: sqldemo1 | |
securityContext: | |
fsGroup: 10001 | |
containers: | |
- name: mssql | |
image: mcr.microsoft.com/mssql/server:2019-latest | |
command: ["/opt/mssql/bin/sqlservr"] | |
args: ["-T", "3226"] | |
ports: | |
- containerPort: 1433 | |
env: | |
- name: MSSQL_PID | |
value: "Developer" | |
- name: ACCEPT_EULA | |
value: "Y" | |
- name: SA_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: mssql | |
key: SA_PASSWORD | |
volumeMounts: | |
- name: mssqldb | |
mountPath: /var/opt/mssql | |
volumes: | |
- name: mssqldb | |
persistentVolumeClaim: | |
claimName: mssql-data | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mssql-deployment | |
spec: | |
selector: | |
app: mssql | |
ports: | |
- protocol: TCP | |
port: 31433 | |
targetPort: 1433 | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment