Skip to content

Commit

Permalink
mobi variant nod needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Aug 13, 2023
1 parent 380fe43 commit a135e53
Show file tree
Hide file tree
Showing 18 changed files with 8 additions and 447 deletions.
15 changes: 6 additions & 9 deletions config/mobi/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,23 @@
disable = false

[params]
enabledModule = "base customer mobi"
enabledModule = "base"
copyright = "Puzzle ITC GmbH"
imagePrefix = "puzzle_"
customer = "mobi"

[params.images]
deployment-image-url = "REGISTRY-URL/puzzle/k8s/kurs/example-web-go:latest"
training-image-url = "REGISTRY-URL/puzzle/k8s/kurs/example-web-python:latest"
nginxinc-nginx-unprivileged = "REGISTRY-URL/puzzle/k8s/kurs/nginx-unprivileged"
nginx = "REGISTRY-URL/puzzle/k8s/kurs/nginx:latest"
stress = "REGISTRY-URL/puzzle/k8s/kurs/stress:latest"
busybox = "REGISTRY-URL/puzzle/k8s/kurs/busybox:1.28"

[[Languages.en.menu.main]]
copyright = "Puzzle ITC GmbH"
url = "https://www.puzzle.ch"

[params.replaceContent]
allowedHrefHosts = ['localhost', 'puzzle.ch', 'acend.ch']

[[params.replaceContent.placeholders]]
placeholder = "<namespace>"
queryParam = "n"
defaultValue = "$USER"

[[params.replaceContent.placeholders]]
placeholder = "REGISTRY-URL"
queryParam = "r"
Expand Down
7 changes: 0 additions & 7 deletions content/en/docs/additional-concepts/configmaps/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,9 @@ Basically, a Deployment has to be extended with the following config:

{{% onlyWhenNot openshift %}}
Here is a complete example Deployment of a sample Java app:

{{% onlyWhenNot customer %}}
{{< readfile file="/content/en/docs/additional-concepts/configmaps/spring-boot-example.yaml" code="true" lang="yaml" >}}
{{% /onlyWhenNot %}}

{{% onlyWhen mobi %}}
{{< readfile file="/content/en/docs/additional-concepts/configmaps/spring-boot-example-mobi.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}
{{% /onlyWhenNot %}}

This means that the container should now be able to access the ConfigMap's content in `/etc/config/java.properties`. Let's check:

{{% onlyWhen openshift %}}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ Let's first look at the Job resource that we want to create.
{{% onlyWhen baloise %}}
{{< readfile file="/content/en/docs/additional-concepts/cronjobs-and-jobs/job-mariadb-dump-baloise.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}
{{% onlyWhen mobi %}}
{{< readfile file="/content/en/docs/additional-concepts/cronjobs-and-jobs/job-mariadb-dump-mobi.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}


The parameter `.spec.template.spec.containers[0].image` shows that we use the same image as the running database. In contrast to the database Pod, we don't start a database afterwards, but run a `mysqldump` command, specified with `.spec.template.spec.containers[0].command`. To perform the dump, we use the environment variables of the database deployment to set the hostname, user and password parameters of the `mysqldump` command. The `MYSQL_PASSWORD` variable refers to the value of the secret, which is already used for the database Pod. This way we ensure that the dump is performed with the same credentials.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ And add a new (sidecar) container to it:
{{% onlyWhen baloise %}}
{{< readfile file="/content/en/docs/additional-concepts/sidecar-containers/deploy_mariadb-sidecar_baloise.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}
{{% onlyWhen mobi %}}
{{< readfile file="/content/en/docs/additional-concepts/sidecar-containers/deploy_mariadb-sidecar_mobi.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}

and then apply the change with:

Expand Down

This file was deleted.

11 changes: 1 addition & 10 deletions content/en/docs/additional-concepts/statefulsets/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ Create a file named `sts_nginx-cluster.yaml` with the following definition of a
{{% onlyWhen baloise %}}
{{< readfile file="/content/en/docs/additional-concepts/statefulsets/sts_nginx-cluster_baloise.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}
{{% onlyWhen mobi %}}
{{< readfile file="/content/en/docs/additional-concepts/statefulsets/sts_nginx-cluster_mobi.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}

Create the StatefulSet:

Expand Down Expand Up @@ -114,16 +111,10 @@ You can again watch the pods' progress like you did in the first task.
In order to update the image tag in use in a StatefulSet, you can use the `{{% param cliToolName %}} set image` command.
Set the StatefulSet's image tag to `latest`:

{{% onlyWhenNot mobi %}}

```bash
{{% param cliToolName %}} set image statefulset nginx-cluster nginx={{% param "images.nginxinc-nginx-unprivileged" %}}:latest --namespace <namespace>
```
{{% /onlyWhenNot %}}
{{% onlyWhen mobi %}}
```bash
kubectl set image statefulset nginx-cluster nginx={{% param "images.nginx" %}} --namespace <namespace>
```
{{% /onlyWhen %}}


## {{% task %}} Rollback
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions content/en/docs/attaching-a-database/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ Save this snippet as `mariadb.yaml`:
{{< readfile file="/content/en/docs/attaching-a-database/mariadb.yaml" code="true" lang="yaml" >}}
{{% /onlyWhenNot %}}

{{% onlyWhen mobi %}}
{{< readfile file="/content/en/docs/attaching-a-database/mariadb-mobi.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}

Apply it with:

```bash
Expand Down
69 changes: 0 additions & 69 deletions content/en/docs/attaching-a-database/mariadb-mobi.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions content/en/docs/exposing-a-service/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ In order to create the Ingress resource, we first need to create the file `ingre
{{< readfile file="/content/en/docs/exposing-a-service/ingress.template.yaml" code="true" lang="yaml" >}}
{{% /onlyWhenNot %}}

{{% onlyWhen mobi %}}
{{< readfile file="/content/en/docs/exposing-a-service/ingress-mobi.template.yaml" code="true" lang="yaml" >}}
{{% /onlyWhen %}}

As you see in the resource definition at `spec.rules[0].http.paths[0].backend.service.name` we use the previously created `example-web-go` ClusterIP Service.

Let's create the Ingress resource with:
Expand All @@ -185,13 +181,8 @@ Let's create the Ingress resource with:
kubectl apply -f ingress.yaml --namespace <namespace>
```

{{% onlyWhenNot mobi %}}
Afterwards, we are able to access our freshly created Ingress at `http://example-web-go-<namespace>.<appdomain>`
{{% /onlyWhenNot %}}
{{% onlyWhen mobi %}}
Afterwards, we are able to access our app via our freshly created Ingress at `https://example-web-go-<namespace>.<appdomain>`. Although we have not configured the Ingress to use TLS, it is available with a `https` address. This is because of the setup at Mobiliar and not default behavior.
{{% /onlyWhen %}}
{{% /onlyWhenNot %}}
{{% onlyWhen openshift %}}
{{% onlyWhenNot baloise %}}

Expand Down
17 changes: 0 additions & 17 deletions content/en/docs/exposing-a-service/ingress-mobi.template.yaml

This file was deleted.

Loading

0 comments on commit a135e53

Please sign in to comment.