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
Copy file name to clipboardExpand all lines: tutorials/deploy-hasura-engine-database-postgresql/index.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ categories:
10
10
- postgresql-and-mysql
11
11
hero: assets/scaleway_hasura.webp
12
12
dates:
13
-
validation: 2024-05-13
13
+
validation: 2024-11-25
14
14
posted: 2020-07-08
15
15
---
16
16
@@ -37,19 +37,19 @@ Hasura provides a pre-configured [repository](https://github.com/hasura/graphql-
37
37
38
38
2. Update the `docker-run.sh` script with your PostgreSQL database credentials:
39
39
40
-
Open the file in a text editor and locate the `HASURA_GRAPHQL_DATABASE_URL` environment variable. Replace `postgres://username:password@hostname:port/dbname` with your database credentials.
40
+
Open the file in a text editor and locate the `HASURA_GRAPHQL_DATABASE_URL` environment variable. Replace `postgres://username:password@hostname:port/dbname` with your database credentials. Choose a value for `youradminsecret` that you will use to log in to the Hasura console in the next section.
If your database password contains special characters like `@`or `#`, ensure they are [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters).
52
+
If your database password contains special characters like `@`, `!`, or `#`, ensure they are [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters). The default `dbname` is `rdb`.
53
53
</Message>
54
54
55
55
3. Run the script:
@@ -67,7 +67,7 @@ Hasura provides a pre-configured [repository](https://github.com/hasura/graphql-
67
67
5. Access the Hasura Console by opening `http://localhost:8080/console` in your browser. You need to use the `HASURA_GRAPHQL_ADMIN_SECRET` value to log in.
You should get an output similar to the following:
126
+
127
+
```
128
+
namespace/crossplane-system created
129
+
```
130
+
131
+
2. Run the following command to create a `secret.yaml` file in which your Kubernetes secret configuration will be stored:
120
132
121
133
```
122
134
nano secret.yaml
123
135
```
124
136
125
-
2. Edit the request payload you will use to create your Kubernetes secret configuration file. Replace the parameters in the following example using the information in the configuration reference table:
137
+
3. Edit the request payload you will use in the `secret.yaml` file, to create your Kubernetes secret. Replace the parameters in the following example using the information in the [configuration reference table](#configuration-reference-table-secret-resource):
126
138
127
139
```
128
140
apiVersion: v1
@@ -146,9 +158,9 @@ The provider requires credentials to create and manage Scaleway resources.
146
158
Secret names must be a valid DNS subdomain, meaning they must consist of lowercase alphanumeric characters, hyphens ("-") or periods and must start and end with an alphanumeric character. Underscores ("_") are not permitted.
147
159
</Message>
148
160
149
-
3. Paste the content of the request payload and save the changes by following the information displayed on your terminal.
161
+
4. Paste the content of the request payload into the contents of the `secret.yaml` file, and save the changes by following the information displayed on your terminal.
150
162
151
-
4. Run the following command to create the secret previously defined in the secret.yaml file.
163
+
5. Run the following command to create the secret you just defined in the `secret.yaml` file.
152
164
153
165
```
154
166
kubectl apply -f secret.yaml
@@ -160,18 +172,6 @@ The provider requires credentials to create and manage Scaleway resources.
160
172
secret/name-of-secret created
161
173
```
162
174
163
-
5. Run the following command to create a `crossplane-system`[namespace](/containers/container-registry/concepts/#namespace):
@@ -204,7 +204,7 @@ Create a `.yaml` configuration file to attach your Scaleway credentials to the p
204
204
nano providerconfig
205
205
```
206
206
207
-
2. Edit the request payload you will use to create your `providerconfig` file. Replace the parameters in the following example using the information in the configuration reference table:
207
+
2. Edit the request payload you will use to create your `providerconfig` file. Replace the parameters in the following example using the information in the [configuration reference table](#configuration-reference-table-providerconfig):
208
208
209
209
```
210
210
apiVersion: scaleway.upbound.io/v1beta1
@@ -213,14 +213,14 @@ Create a `.yaml` configuration file to attach your Scaleway credentials to the p
213
213
name: default
214
214
spec:
215
215
credentials:
216
-
source: Secret
217
-
secretRef:
218
-
name: name-of-secret
219
-
namespace: crossplane-system
220
-
key: credentials
216
+
source: Secret
217
+
secretRef:
218
+
name: name-of-secret
219
+
namespace: crossplane-system
220
+
key: credentials
221
221
```
222
222
223
-
3. Paste the content of the request payload and save the changes by following the information displayed on your terminal.
223
+
3. Paste the content of the request payload into the `providerconfig` file, and save the changes by following the information displayed on your terminal.
224
224
225
225
4. Run the following command to apply the previously set configuration to the secret. Make sure to replace the example file path with your own.
226
226
@@ -306,7 +306,7 @@ Create a `.yaml` configuration file to attach your Scaleway credentials to the p
Copy file name to clipboardExpand all lines: tutorials/upgrade-managed-postgresql-database/index.mdx
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,11 @@ content:
7
7
paragraph: This page shows how to upgrade your Database for PostgreSQL to the latest version
8
8
tags: storage PostgreSQL Database rdb
9
9
dates:
10
-
validation: 2024-05-20
10
+
validation: 2024-11-25
11
11
categories:
12
12
- postgresql-and-mysql
13
13
---
14
-
15
-
<Messagetype="important">
16
-
PostgreSQL version 10 reached its End of Life (EoL) on November 10, 2022. It is **recommended** to upgrade your PostgreSQL database engine to the latest available version as soon as possible.
17
-
</Message>
14
+
18
15
19
16
[PostgreSQL](https://www.postgresql.org/) is a powerful, open-source object-relational database system with more than 30 years of active development. As major PostgreSQL releases regularly add new features, the layout of the system tables may change. However, the internal data storage format itself rarely changes. This allows you to upgrade a PostgreSQL database system without data loss using the backup and restore functions of the Database API.
20
17
@@ -46,7 +43,7 @@ There are three steps to completing a manual migration: creating a new PostgreSQ
46
43
</Message>
47
44
48
45
1. Open the [Scaleway console](https://console.scaleway.com) in a web browser and click **Managed Databases** in the **Storage** section of the side menu. The list of your databases displays.
49
-
2. Click **+ Create an Instance**. The [Instance creation wizard](https://console.scaleway.com/rdb/instances/create) displays.
46
+
2. Click **+ Create a Database Instance**. The [Database Instance creation wizard](https://console.scaleway.com/rdb/instances/create) displays.
50
47
3. Select **PostgreSQL-13** from the drop-down list and fill in the [required information](/managed-databases/postgresql-and-mysql/how-to/create-a-database/) for your new database Instance. Then click **Create an Instance**. Your database is created, and you are redirected to the database dashboard.
51
48
<Messagetype="note">
52
49
Ensure your new Database Instance is located in the same geographical region as your old one.
0 commit comments