change wording for redis leader (#1804)

#### What type of PR is this?

<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind feature
-->

/kind documentation

#### What this PR does / why we need it:

We should not be using the outdated redis terms, instead redis now uses
leader / replica.

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
N/A

#### Special notes for your reviewer:
N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
This commit is contained in:
Charlie Drage 2024-01-16 09:49:54 -05:00 committed by GitHub
parent bd868aac79
commit 770da91eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View File

@ -57,10 +57,10 @@ Run `kompose convert` in the same directory as your `compose.yaml` file.
```sh ```sh
$ kompose convert $ kompose convert
INFO Kubernetes file "frontend-service.yaml" created INFO Kubernetes file "frontend-service.yaml" created
INFO Kubernetes file "redis-master-service.yaml" created INFO Kubernetes file "redis-leader-service.yaml" created
INFO Kubernetes file "redis-replica-service.yaml" created INFO Kubernetes file "redis-replica-service.yaml" created
INFO Kubernetes file "frontend-deployment.yaml" created INFO Kubernetes file "frontend-deployment.yaml" created
INFO Kubernetes file "redis-master-deployment.yaml" created INFO Kubernetes file "redis-leader-deployment.yaml" created
INFO Kubernetes file "redis-replica-deployment.yaml" created INFO Kubernetes file "redis-replica-deployment.yaml" created
``` ```
@ -147,12 +147,12 @@ Run `kompose convert --provider=openshift` in the same directory as your `compos
```sh ```sh
$ kompose convert --provider=openshift $ kompose convert --provider=openshift
INFO OpenShift file "frontend-service.yaml" created INFO OpenShift file "frontend-service.yaml" created
INFO OpenShift file "redis-master-service.yaml" created INFO OpenShift file "redis-leader-service.yaml" created
INFO OpenShift file "redis-replica-service.yaml" created INFO OpenShift file "redis-replica-service.yaml" created
INFO OpenShift file "frontend-deploymentconfig.yaml" created INFO OpenShift file "frontend-deploymentconfig.yaml" created
INFO OpenShift file "frontend-imagestream.yaml" created INFO OpenShift file "frontend-imagestream.yaml" created
INFO OpenShift file "redis-master-deploymentconfig.yaml" created INFO OpenShift file "redis-leader-deploymentconfig.yaml" created
INFO OpenShift file "redis-master-imagestream.yaml" created INFO OpenShift file "redis-leader-imagestream.yaml" created
INFO OpenShift file "redis-replica-deploymentconfig.yaml" created INFO OpenShift file "redis-replica-deploymentconfig.yaml" created
INFO OpenShift file "redis-replica-imagestream.yaml" created INFO OpenShift file "redis-replica-imagestream.yaml" created
``` ```
@ -267,12 +267,12 @@ Run `kompose convert --provider=openshift` in the same directory as your `compos
```sh ```sh
$ kompose convert --provider=openshift $ kompose convert --provider=openshift
INFO OpenShift file "frontend-service.yaml" created INFO OpenShift file "frontend-service.yaml" created
INFO OpenShift file "redis-master-service.yaml" created INFO OpenShift file "redis-leader-service.yaml" created
INFO OpenShift file "redis-replica-service.yaml" created INFO OpenShift file "redis-replica-service.yaml" created
INFO OpenShift file "frontend-deploymentconfig.yaml" created INFO OpenShift file "frontend-deploymentconfig.yaml" created
INFO OpenShift file "frontend-imagestream.yaml" created INFO OpenShift file "frontend-imagestream.yaml" created
INFO OpenShift file "redis-master-deploymentconfig.yaml" created INFO OpenShift file "redis-leader-deploymentconfig.yaml" created
INFO OpenShift file "redis-master-imagestream.yaml" created INFO OpenShift file "redis-leader-imagestream.yaml" created
INFO OpenShift file "redis-replica-deploymentconfig.yaml" created INFO OpenShift file "redis-replica-deploymentconfig.yaml" created
INFO OpenShift file "redis-replica-imagestream.yaml" created INFO OpenShift file "redis-replica-imagestream.yaml" created
``` ```

View File

@ -13,6 +13,6 @@ $ kubectl apply -f .
$ kubectl get po $ kubectl get po
NAME READY STATUS RESTARTS AGE NAME READY STATUS RESTARTS AGE
frontend-591253677-5t038 1/1 Running 0 10s frontend-591253677-5t038 1/1 Running 0 10s
redis-master-2410703502-9hshf 1/1 Running 0 10s redis-leader-2410703502-9hshf 1/1 Running 0 10s
redis-replica-4049176185-hr1lr 1/1 Running 0 10s redis-replica-4049176185-hr1lr 1/1 Running 0 10s
``` ```

View File

@ -48,20 +48,20 @@ $ kompose -f compose.yml -f docker-guestbook.yml convert
INFO Kubernetes file "frontend-service.yaml" created INFO Kubernetes file "frontend-service.yaml" created
INFO Kubernetes file "mlbparks-service.yaml" created INFO Kubernetes file "mlbparks-service.yaml" created
INFO Kubernetes file "mongodb-service.yaml" created INFO Kubernetes file "mongodb-service.yaml" created
INFO Kubernetes file "redis-master-service.yaml" created INFO Kubernetes file "redis-leader-service.yaml" created
INFO Kubernetes file "redis-replica-service.yaml" created INFO Kubernetes file "redis-replica-service.yaml" created
INFO Kubernetes file "frontend-deployment.yaml" created INFO Kubernetes file "frontend-deployment.yaml" created
INFO Kubernetes file "mlbparks-deployment.yaml" created INFO Kubernetes file "mlbparks-deployment.yaml" created
INFO Kubernetes file "mongodb-deployment.yaml" created INFO Kubernetes file "mongodb-deployment.yaml" created
INFO Kubernetes file "mongodb-claim0-persistentvolumeclaim.yaml" created INFO Kubernetes file "mongodb-claim0-persistentvolumeclaim.yaml" created
INFO Kubernetes file "redis-master-deployment.yaml" created INFO Kubernetes file "redis-leader-deployment.yaml" created
INFO Kubernetes file "redis-replica-deployment.yaml" created INFO Kubernetes file "redis-replica-deployment.yaml" created
$ ls $ ls
mlbparks-deployment.yaml mongodb-service.yaml redis-replica-service.jsonmlbparks-service.yaml mlbparks-deployment.yaml mongodb-service.yaml redis-replica-service.jsonmlbparks-service.yaml
frontend-deployment.yaml mongodb-claim0-persistentvolumeclaim.yaml redis-master-service.yaml frontend-deployment.yaml mongodb-claim0-persistentvolumeclaim.yaml redis-leader-service.yaml
frontend-service.yaml mongodb-deployment.yaml redis-replica-deployment.yaml frontend-service.yaml mongodb-deployment.yaml redis-replica-deployment.yaml
redis-master-deployment.yaml redis-leader-deployment.yaml
``` ```
When multiple compose files are provided the configuration is merged. Any configuration that is common will be over ridden by subsequent file. When multiple compose files are provided the configuration is merged. Any configuration that is common will be over ridden by subsequent file.