Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added secrets yaml and documentation #801

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions linux/sample-helm-chart-statefulset-deployment/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ On the client machine where you have the Helm tools installed, download the char
| Values.podSecurityContext.fsgroup | Security context at the pod level. | 10001 |
| Values.service.port | The service port number. | 1433 |
| Values.replicas | This value controls the number of SQL Server deployments that would be done, consider this as the number of SQL Server instances that will run. | 3 |
| Values.sa_password | This sets the initial SA Password when pods bootup | Toughpass1!

<br/>

Expand All @@ -51,6 +52,7 @@ In this scenario, I am deploying three SQL Server containers on a Azure Kubernet
| mssqlconfig.yaml | SQL server mssql.conf file and its content that you would like to mount to the SQL Server container. For parameters that you can pass in this file please refer mssql.conf documentation. To modify the mssql.conf settings please modify this file. |
| sc.yaml | A manifest file that describes the storage class (SC) to be deployed. To make any changes to the sc please modify this file accordingly. |
| service.yaml | A manifest file that defines the kubernetes service type and port. Because this is a statefulset deployment, this manifest files helps in creating the headless service. Please modify this for any service modification that is needed. |
| secret.yaml | A manifest file that defines the secret, SA_PASSWORD which will be initially set as password for mssql. Please modify this after initial bootup to secure your setup. |

<br/>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: mssql
labels:
{{- include "sql-statefull-deploy.labels" . | nindent 4 }}
type: Opaque
data:
SA_PASSWORD: {{ .Values.sa_password | b64enc | quote}}
2 changes: 2 additions & 0 deletions linux/sample-helm-chart-statefulset-deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ MSSQL_PID:
value: "Developer"
MSSQL_AGENT_ENABLED:
value: "false"
sa_password: "Toughpass1!" #default SA Password


containers:
ports:
Expand Down