Skip to content

Commit 23d5603

Browse files
committed
docs: upgrade sops and sealedsecrets
1 parent 1536e54 commit 23d5603

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

docs/guide/k8s-secret.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,35 @@ To get started, ensure you have the following:
1717

1818
This guide will focus on using the Mac specifications. If you use a Linux OS, follow the instructions in the [Linux Markdown files.](https://github.com/stateful/blog-examples/blob/main/kubernetes/k8s-secret/sealed-secret/linux-sealedsecrets.md)
1919

20-
2120
### Install all Dependencies
2221

2322
To follow up on securing your secrets using sealed secrets, ensure you install the necessary dependencies in the notebook's prerequisite section. In your Runme cell, run the commands below to install all dependencies required for this guide.
2423

24+
<video autoPlay loop muted playsInline controls>
25+
<source src="/videos/sealed-secrets-runme.mp4" type="video/mp4" />
26+
<source src="/videos/sealed-secrets-runme.webm" type="video/webm" />
27+
</video>
28+
2529
### **Encrypt a Secret in Runme**[](https://docs-runme-55rq3q1vz-stateful.vercel.app/guide/k8s-secret#encrypt-a-secret)
2630

2731
To encrypt a secret, you must create a Kubernetes secret using `kubeseal`. Navigate to your cloned repo's ‘Encrypt a Secret’ section and [choose your preferred encryption method from the options provided.](https://github.com/stateful/blog-examples/blob/main/kubernetes/k8s-secret/sealed-secret/Mac-sealedsecret.md#encrypt-a-secret) Once that is done, run the command below in your Runme cell.
2832

29-
3033
Runme will automatically create a sealed secret resource containing the encrypted data, the **`mysealedsecret.yaml`**
3134

3235
### Adding New Value to A Secret
3336

3437
You can add a new value to your secret by navigating to [this section](https://github.com/stateful/blog-examples/blob/main/kubernetes/k8s-secret/sealed-secret/Mac-sealedsecret.md#adding-a-new-value-to-a-sealed-secret) and executing the commands. You only need to update your manifest file with the new values, re-encrypt the secrets, and then reapply them to the cluster. All of these can be executed in your Runme cell. The image below shows a visual representation of this process.
3538

36-
37-
38-
3939
From the output gotten, you can see that your new value has successfully been added.
4040

41+
![add value](../../static/img/guide-page/add-secrets.png)
42+
4143
### Decrypt a Secret[](https://docs-runme-55rq3q1vz-stateful.vercel.app/guide/k8s-secret#decrypt-a-secret)
4244

4345
To retrieve the original version of `runme-secrets.yaml`, you can decrypt the encrypted secret, `mysealedsecret.yaml`. Run the command in the ‘Decrypt a Secret’ section of the repo and run it in your Runme cell.
4446

47+
![decrypt](../../static/img/guide-page/decrypt-secret.png)
48+
4549
### Delete a Secret
4650

4751
To delete the secret, use the `kubectl` command to delete the resource and run it in your Runme cell.
@@ -50,12 +54,11 @@ To delete the secret, use the `kubectl` command to delete the resource and run
5054
kubectl delete -f mysealedsecret.yaml
5155
```
5256

53-
5457
### **Deploy the Sealed Secret**[](https://docs-runme-55rq3q1vz-stateful.vercel.app/guide/k8s-secret#deploy-the-sealed-secret)
5558

5659
To deploy your secret, execute the code below:
5760

58-
```
61+
```sh
5962
kubectl apply -f mysealedsecret.yaml
6063
```
6164

@@ -75,7 +78,3 @@ Some [key features](https://docs.runme.dev/getting-started/features) of Runme th
7578
- Run code in your preferred language.
7679

7780
These are just a few of the things you can achieve in Runme. To explore Runme more, visit the [Runme Documentation](https://docs.runme.dev/), where you can embark on a guided journey to a more secure Kubernetes environment.
78-
79-
80-
81-
\

docs/guide/sops.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Navigate to the [SOPS file](https://github.com/stateful/blog-examples/tree/main/
2929
Run the command within your Runme cell to install `kind`, `kubectl`, `sops`, and `awscli`
3030

3131
<video autoPlay loop muted playsInline controls>
32-
<source src="/videos/runme-envprompt-k8s.mp4" type="video/mp4" />
33-
<source src="/videos/runme-envprompt-k8s.webm" type="video/webm" />
32+
<source src="/videos/runme-sops.mp4" type="video/mp4" />
33+
<source src="/videos/runme-sops.webm" type="video/webm" />
3434
</video>
3535

3636
Finally, configure the installed AWS CLI in your Runme Terminal.
72.5 KB
Loading
175 KB
Loading

static/videos/runme-sops.mp4

210 KB
Binary file not shown.

static/videos/runme-sops.webm

350 KB
Binary file not shown.
905 KB
Binary file not shown.
906 KB
Binary file not shown.

0 commit comments

Comments
 (0)