Skip to content

Commit

Permalink
change sidecar lab and also use apply in openshift variants
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Jul 3, 2023
1 parent 537d381 commit dc70d14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
17 changes: 3 additions & 14 deletions content/en/docs/additional-concepts/sidecar-containers/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,10 @@ Change the existing `mariadb` Deployment by first editing your local `mariadb.ya
{{% /onlyWhenNot %}}
{{% onlyWhen openshift %}}
{{% onlyWhenNot baloise %}}
Change the existing `mariadb` DeploymentConfig using:

```bash
oc edit dc mariadb --namespace <namespace>
```

Change the existing `mariadb` DeploymentConfig by first editing your local `mariadb.yaml` file. Add a new (sidecar) container into your Deployment.
{{% /onlyWhenNot %}}
{{% onlyWhen baloise %}}
Change the existing `mariadb` Deployment using:

```bash
oc edit deploy mariadb --namespace <namespace>
```

Change the existing `mariadb` Deployment using by first editing your local `mariadb.yaml` file. Add a new (sidecar) container into your Deployment:
{{% /onlyWhen %}}
And add a new (sidecar) container to it:
{{% /onlyWhen %}}
Expand All @@ -58,18 +48,17 @@ And add a new (sidecar) container to it:
{{< readfile file="/content/en/docs/additional-concepts/sidecar-containers/deploy_mariadb-sidecar_mobi.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}

{{% onlyWhenNot openshift %}}
and then apply the change with:

```bash
{{% param cliToolName %}} apply -f mariadb.yaml --namespace <namespace>
```
{{% /onlyWhenNot %}}

Your Pod now has two running containers. Verify this with:

```bash
{{% param cliToolName %}} get pod --namespace <namespace>
```

The output should look similar to this:

Expand Down
1 change: 0 additions & 1 deletion content/en/docs/exposing-a-service/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ As a consequence, the `oc expose` command above doesn't add anything new but it
{{% /onlyWhen %}}



Let's have a more detailed look at our Service:

```bash
Expand Down

0 comments on commit dc70d14

Please sign in to comment.