You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new storage class will be used in the next section.
196
+
145
197
## What you've accomplished and what's next
146
198
147
199
You've successfully prepared your GKE environment by installing and configuring the Google Cloud SDK, creating a GKE cluster, connecting kubectl to the cluster, and verifying cluster access. Your environment is now ready to deploy applications using Helm charts.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/helm-on-gcp/postgresql-helm.md
+2-26Lines changed: 2 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ This approach prevents hard-coding credentials and follows Kubernetes security b
105
105
106
106
### Create pvc.yaml
107
107
108
-
Create `my-postgres/templates/pvc.yaml` with the following content to request persistent storage so PostgreSQL data remains available even if the pod restarts:
108
+
Create `my-postgres/templates/pvc.yaml` with the following content to request persistent storage so PostgreSQL data remains available even if the pod restarts. Note the specification of the storage class that will be used **my-hyperdisk-sc** which was created and added to our cluster in the previous section. This hyperdisk-based storage class is required for the c4a architecture:
109
109
110
110
```yaml
111
111
apiVersion: v1
@@ -115,6 +115,7 @@ metadata:
115
115
spec:
116
116
accessModes:
117
117
- ReadWriteOnce
118
+
storageClassName: my-hyperdisk-sc
118
119
resources:
119
120
requests:
120
121
storage: {{ .Values.persistence.size }}
@@ -211,31 +212,6 @@ REVISION: 1
211
212
TEST SUITE: None
212
213
```
213
214
214
-
### Taint the nodes
215
-
216
-
Taint the nodes to ensure proper scheduling. First, list the nodes:
0 commit comments