-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing issue with deployment to AKS (#8249)
Set the storageClass to an empty string to pick up the default storage class Defined the mountPoint for the pvc. Fixes #8072 Signed-off-by: Nick Beenham <[email protected]> Co-authored-by: Karishma Chawla <[email protected]>
- Loading branch information
1 parent
a665232
commit f81b546
Showing
8 changed files
with
107 additions
and
316 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: database-secret | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
control-plane: database | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
data: | ||
POSTGRES_DB: ps_db | ||
POSTGRES_USER: ps_user | ||
POSTGRES_PASSWORD: SecurePassword |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: database | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
ports: | ||
- port: 5432 | ||
name: postgres | ||
protocol: TCP | ||
targetPort: 5432 | ||
selector: | ||
app.kubernetes.io/name: database |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: database | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: database | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
control-plane: database | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
serviceName: "database" | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: database | ||
template: | ||
metadata: | ||
labels: | ||
control-plane: database | ||
app.kubernetes.io/name: database | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
serviceAccountName: database | ||
containers: | ||
- name: database | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
image: "{{ .Values.database.image }}:{{ .Values.database.tag }}" | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
requests: | ||
memory: "{{ .Values.database.resources.requests.memory }}" | ||
cpu: "{{ .Values.database.resources.requests.cpu }}" | ||
limits: | ||
memory: "{{ .Values.database.resources.limits.memory }}" | ||
cpu: "{{ .Values.database.resources.limits.cpu }}" | ||
envFrom: | ||
- configMapRef: | ||
name: database-secret | ||
ports: | ||
- containerPort: 5432 | ||
name: postgres | ||
volumeMounts: | ||
- name: database | ||
mountPath: /var/lib/postgresql/data | ||
subPath: postgres | ||
|
||
volumeClaimTemplates: | ||
- metadata: | ||
name: database | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
storageClassName: {{ .Values.database.storageClassName }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.database.storageSize }} |
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
118 changes: 0 additions & 118 deletions
118
test/functional-portable/datastoresrp/noncloud/resources/sql_test.go
This file was deleted.
Oops, something went wrong.
104 changes: 0 additions & 104 deletions
104
...rtable/datastoresrp/noncloud/resources/testdata/datastoresrp-resources-sqldb-manual.bicep
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.