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: docs/guide/k8s-secret.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,24 @@
2
2
3
3
Runme provides a platform for documenting processes and instructions. It integrates swiftly with cloud infrastructures, including Kubernetes and its resources.
4
4
5
-
This guide will explore one such resource, Kubernetes secrets, with a specific focus on sealed secrets.
5
+
This guide will explore one such resource, Kubernetes secrets, with a specific focus on Sealed Secrets.
6
6
7
7
[Sealed Secrets](https://archive.eksworkshop.com/beginner/200_secrets/installing-sealed-secrets/) is an open-source project that helps encrypt Kubernetes secrets, which can then be securely stored in your version control. Runme makes securing these secrets easier.
8
8
9
-
In this guide, we will demonstrate the steps required to encrypt Kubernetes secrets with sealed secrets in Runme successfully.
9
+
In this guide, we will demonstrate the steps required to encrypt Kubernetes secrets with Sealed Secrets in Runme successfully.
-**Clone the repo**: We created a [notebook repo](https://github.com/stateful/blog-examples/tree/main/kubernetes/k8s-secret/sealed-secret) containing all the instructions and commands required for this guide.
16
-
-**Install Runme**: Install the [Runme extension on VS Code](https://marketplace.visualstudio.com/items?itemName=stateful.runme) and set it as your [default markdown Viewer.](https://docs.runme.dev/installation/installrunme#how-to-set-vs-code-as-your-default-markdown-viewer)
15
+
-**Clone the repository**: We created a [notebook repository](https://github.com/stateful/blog-examples/tree/main/kubernetes/k8s-secret/sealed-secret) containing all the instructions and commands required for this guide.
16
+
-**Install Runme**: Install the [Runme extension on VS Code](https://marketplace.visualstudio.com/items?itemName=stateful.runme) and set it as your [default Markdown viewer.](https://docs.runme.dev/installation/installrunme#how-to-set-vs-code-as-your-default-markdown-viewer)
17
17
18
18
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)
19
19
20
20
### Install all Dependencies
21
21
22
-
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.
22
+
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.
@@ -30,7 +30,7 @@ To follow up on securing your secrets using sealed secrets, ensure you install t
30
30
31
31
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.
32
32
33
-
Runme will automatically create a sealed secret resource containing the encrypted data, the **`mysealedsecret.yaml`**
33
+
Runme will automatically create a Sealed Secret resource containing the encrypted data, the **`mysealedsecret.yaml`**
34
34
35
35
### Adding New Value to A Secret
36
36
@@ -60,9 +60,9 @@ To deploy your secret, execute the code below:
The Sealed Secrets controller will decrypt the SealedSecret and create a Kubernetes Secret with the decrypted data.
63
+
The Sealed Secrets controller will decrypt the Sealed Secret and create a Kubernetes Secret with the decrypted data.
64
64
65
-
Make sure to replace placeholders like **`mysecret.yaml`** and **`mysealedsecret.yaml`** with your secret and sealed secret filenames. Adjust controller-specific details such as the namespace and name according to your environment.
65
+
Make sure to replace placeholders like **`mysecret.yaml`** and **`mysealedsecret.yaml`** with your secret and Sealed Secret filenames. Adjust controller-specific details such as the namespace and name according to your environment.
66
66
67
67
## How Runme Improves Your Documentation Experience
Copy file name to clipboardExpand all lines: docs/guide/replicaset.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,25 @@
1
1
# How to Optimize Kubernetes Replicaset Using Runme
2
2
3
3
Runme provides a platform that allows you to create standardized procedures for configuring, deploying, and managing your everyday operational tools and resources.
4
-
Working with essential kubernetes controller like [ReplicaSets](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/) ensures that you have high availability of your pod and improve the scalability of your applications. With Runme, you can optimize these process right within your Markdown file!
4
+
Working with essential Kubernetes controller like [ReplicaSets](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/) ensures that you have high availability of your pod and improve the scalability of your applications. With Runme, you can optimize these process right within your Markdown file!
5
5
6
-
This guide will show you a step-by-step guide to configure and deploy your Kubernetes ReplicaSets within your Runme Notebook.
6
+
This guide will show you a step-by-step process to configure and deploy your Kubernetes ReplicaSets within your Runme Notebook.
7
7
8
8
## Prerequisites
9
9
10
10
To follow up on this tutorial, ensure you have the following:
11
11
12
12
-**Runme Extension**: Install the [Runme extension](https://marketplace.visualstudio.com/items?itemName=stateful.runme) in your VS Code editor and make it your [default Markdown viewer](https://docs.runme.dev/installation/installrunme#how-to-set-vs-code-as-your-default-markdown-viewer). Runme also provides other client interfaces where you can run your Markdown file. See the [Runme installation](../installation/index.md) guide.
13
-
-**Clone Repo**: We have provided an example repo to help you follow this tutorial. Clone the [repo here](https://github.com/stateful/blog-examples/tree/main/kubernetes/replicaset).
14
-
-**Require Packages**: Install the required packages (brew, kind, and kubectl) inside your Markdown file. *Runme allows you to achieve this! Simply run the command in the [prerequisite section](https://github.com/stateful/blog-examples/blob/main/kubernetes/replicaset/replicaset-mac.md#prerequisites) in the repo*.
13
+
-**Clone Repository**: We have provided an example repository to help you follow this tutorial. Clone the [Repository here](https://github.com/stateful/blog-examples/tree/main/kubernetes/replicaset).
14
+
-**Require Packages**: Install the required packages (brew, kind, and kubectl) inside your Markdown file. *Runme allows you to achieve this! Simply run the command in the [prerequisite section](https://github.com/stateful/blog-examples/blob/main/kubernetes/replicaset/replicaset-mac.md#prerequisites) in the repository*.
15
15
16
16
To get started, we have already [created a ReplicaSet](https://github.com/stateful/blog-examples/blob/main/kubernetes/replicaset/manifest.yaml) using a YAML configuration file. Here, we will demonstrate how you can manage the deployment of the Replicaset with Kubernetes. Before we deploy the ReplicaSet to Kubernetes, let us apply the functionalities to this file within your Runme cell.
17
17
18
18
## Configure your ReplicaSet for deployment in Runme
19
19
20
20
**Apply ReplicaSet Configurations in Runme**
21
21
22
-
In your cell, run the command below. This command instructs Kubernetes to create and update the resources specified in the YAML file. :
22
+
In your cell, run the command below. This command instructs Kubernetes to create and update the resources specified in the YAML file:
When this command is executed, Runme returns logs about the specific Pod. This information can be used to debug or troubleshoot a pod. As provided in the image above
54
+
When this command is executed, Runme returns logs about the specific pod. This information can be used to debug or troubleshoot a pod. As provided in the image above
55
55
56
56
## How to Manage ReplicaSets Using a Deployment in Runme
57
57
@@ -61,7 +61,7 @@ This section will walk you through the step-by-step process of managing ReplicaS
61
61
62
62
**Step One: Deploy your application with Runme**
63
63
64
-
You need to create a manifest file to deploy your application to your Kubernetes cluster. For the tutorial, we will be deploying an [NGINX web server application](https://github.com/stateful/blog-examples/blob/main/kubernetes/replicaset/nginx-deployment.yaml). This Kubernetes manifest deploys our NGINX application into the "runme" namespace and specifies that it should manage a set of 5 identical Pods running the NGINX web server.
64
+
You need to create a manifest file to deploy your application to your Kubernetes cluster. For the tutorial, we will be deploying an [NGINX web server application](https://github.com/stateful/blog-examples/blob/main/kubernetes/replicaset/nginx-deployment.yaml). This Kubernetes manifest deploys our NGINX application into the "runme" namespace and specifies that it should manage a set of 5 identical Pods running the NGINX web server.
65
65
66
66
**Step Two: Update the Manifest File**
67
67
@@ -77,7 +77,7 @@ This will update your deployment with the defined ReplicaSet.
77
77
78
78
ReplicaSet ensures that the specified number of identical pods are running at all times, so if a pod gets deleted, the ReplicaSet automatically creates a replacement pod to maintain the desired replica count. To delete a pod, run the command below in your Runme cell, and you will see an output that is identical to the one generated in the image.
Copy file name to clipboardExpand all lines: docs/guide/sops.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,17 @@ In this guide, we will walk you through automating your [Kubernetes Secrets](htt
12
12
13
13
To get started, ensure you have the following:
14
14
15
-
-**Clone the Repo**: We have created a notebook repo containing all the instructions and commands required for this guide. Ensure to [clone the repo](https://github.com/stateful/blog-examples/tree/main/kubernetes/k8s-secret).
15
+
-**Clone the Repository**: We have created a notebook repository containing all the instructions and commands required for this guide. Ensure to [clone the repository](https://github.com/stateful/blog-examples/tree/main/kubernetes/k8s-secret).
16
16
-**Install Runme:** Install the [Runme extension on VS Code](https://marketplace.visualstudio.com/items?itemName=stateful.runme) and set Runme as your [default Markdown viewer.](https://docs.runme.dev/installation/installrunme#how-to-set-vs-code-as-your-default-markdown-viewer)
17
-
-**Require Packages**: Install the required packages (brew, kind, and kubectl) inside your Markdown file. *Runme allows you to achieve this! Simply run the command in the [prerequisite section](https://github.com/stateful/blog-examples/blob/main/kubernetes/replicaset/replicaset-mac.md#prerequisites) of the repo.*
17
+
-**Require Packages**: Install the required packages (brew, kind, and kubectl) inside your Markdown file. *Runme allows you to achieve this! Simply run the command in the [prerequisite section](https://github.com/stateful/blog-examples/blob/main/kubernetes/replicaset/replicaset-mac.md#prerequisites) of the repository.*
18
18
19
19
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/sops/sops-linux.md).
20
20
21
21
## **Securing Secrets with SOPS**[](https://docs-runme-55rq3q1vz-stateful.vercel.app/guide/k8s-secret#securing-secrets-with-sops)
22
22
23
23
To encrypt your Kubernetes secrets using SOPS, you need an advanced security measure, access to a cloud provider, and a Key Management Service (KMS). For this guide, we will use an [AWS KMS key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys).
24
24
25
-
Navigate to the [SOPS file](https://github.com/stateful/blog-examples/tree/main/kubernetes/k8s-secret/sops) in the repo you cloned earlier and open the Markdown file based on the specifications of your operating system to follow up on this section of the guide.
25
+
Navigate to the [SOPS file](https://github.com/stateful/blog-examples/tree/main/kubernetes/k8s-secret/sops) in the repository you cloned earlier and open the Markdown file based on the specifications of your operating system to follow up on this section of the guide.
26
26
27
27
### **Installation of SOPS**[](https://docs-runme-55rq3q1vz-stateful.vercel.app/guide/k8s-secret#installation-of-sops)
28
28
@@ -47,18 +47,18 @@ You can also save this output to the Runme cloud for future use with the [Runme
47
47
48
48
### **Configure SOPS in Runme**[](https://docs-runme-55rq3q1vz-stateful.vercel.app/guide/k8s-secret#configure-sops)
49
49
50
-
To configure your SOPS, specify how to encrypt your secrets, then define the encryption keys. To do this, navigate to the section on SOPS configuration and run the command in your Markdown file using Runme.
50
+
To configure your SOPS, specify how to encrypt your secrets, and then define the encryption keys. To do this, navigate to the section on SOPS configuration and run the command in your Markdown file using Runme.
Once this is executed, it returns the configuration of your sops.yaml file to ensure that it is correct.
55
55
56
56
### **Encrypt Your Secrets**[](https://docs-runme-55rq3q1vz-stateful.vercel.app/guide/k8s-secret#encrypt-your-secrets)
57
57
58
-
To encrypt your secret, ensure you have set the following:
58
+
To encrypt your secret, ensure you have the following information set:
59
59
60
60
- Your environment variables
61
-
- Your manifest `runme-secrets.yaml` file containing your secrets. If you have not done this, create one using the following YAML manifest in [our repo](https://github.com/stateful/blog-examples/blob/main/kubernetes/k8s-secret/sops/runme-secrets.yaml).
61
+
- Your manifest `runme-secrets.yaml` file containing your secrets. If you have not done this, create one using the following YAML manifest in [our repository ](https://github.com/stateful/blog-examples/blob/main/kubernetes/k8s-secret/sops/runme-secrets.yaml).
@@ -69,7 +69,7 @@ Now, we have successfully encrypted your secrets within `runme-secrets.yaml`. Ru
69
69
70
70
Similar to the encryption process, Runme lets you decrypt your encrypted security in your Markdown file. This will ensure that every process is properly automated.
71
71
72
-
To decrypt your secrets, navigate to the “Decrypt Secrets” section in the repo and run the command in your Markdown file with Runme.
72
+
To decrypt your secrets, navigate to the “Decrypt Secrets” section in the repository and run the command in your Markdown file with Runme.
@@ -87,8 +87,8 @@ This runs the `runme-secrets-enc.yaml` file decrypts it and then applies the fil
87
87
88
88
We successfully encrypted our Kubernetes secrets inside our Markdown file. Runme makes your automation process easy with its features.
89
89
90
-
One of these features is the [environment variable](https://docs-runme-ckcd767be-stateful.vercel.app/getting-started/features#environment-variable-prompts) feature, which allows users to input values directly within the notebook environment and use them whenever needed rather than inputting the value again.
90
+
One of the useful features within the notebook environment is the [environment variable prompt](https://docs-runme-ckcd767be-stateful.vercel.app/getting-started/features#environment-variable-prompts). It allows users to input values directly and reuse them whenever needed.
91
91
92
-
Another amazing key feature of Runme is the [Autosave](https://docs.runme.dev/configuration/auto-save) feature, which automatically records and tracks every change and activity in your processes without manual intervention.
92
+
Runme's [Autosave](https://docs.runme.dev/configuration/auto-save) featureautomatically tracks all changes and activities without manual intervention.
93
93
94
94
To learn more about Runme and explore its features, visit the [Runme Documentation](https://docs.runme.dev/) to begin your journey to automating your operations processes.
0 commit comments