Skip to content

Commit

Permalink
add rancher: #878
Browse files Browse the repository at this point in the history
  • Loading branch information
gschmutz committed May 8, 2024
1 parent 8ad11c7 commit cbb117b
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 1 deletion.
2 changes: 2 additions & 0 deletions documentation/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The Modern Data Platform version 1.18.0 contains the following bug fixes and enh
* MQTTX Web & MQTTX CLI
* Web Protégé
* Jena-Fuseki
* Rancher

### Version upgrades

Expand Down Expand Up @@ -61,6 +62,7 @@ The Modern Data Platform version 1.18.0 contains the following bug fixes and enh
* Update `minio` to `RELEASE.2024-04-06T05-26-02Z`
* Update `datahub` to `v0.13.2`
* Update `risingwave` to `v1.8.2`
* Update `portainer` to `alpine-sts`

### Breaking Changes

Expand Down
2 changes: 2 additions & 0 deletions documentation/port-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,8 @@ Container Port(s) | Internal Port(s) | Service (alternatives) |
28367 | 80 | mqttx-web |
28368 | 8080 | web-protege |
28369 | 3030 | lenses |
28370 | 80 | rancher |
28371 | 443 | rancher |


## Ports > 28500
Expand Down
17 changes: 17 additions & 0 deletions documentation/services/rancher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Rancher

Rancher is a Kubernetes management tool to deploy and run clusters anywhere and on any provider.

**[Website](https://www.rancher.com/)** | **[Documentation](https://ranchermanager.docs.rancher.com)** | **[GitHub](https://github.com/rancher/rancher)**

## How to enable?

```
platys init --enable-services RANCHER
platys gen
```

## How to use it?

Navigate to <http://dataplatform:28370>.

5 changes: 4 additions & 1 deletion modern-data-platform-stack/generator-config/stack-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,10 @@ vars:
MICROCKS_version: latest

# Portainer
PORTAINER_version: 2.19.4-alpine
PORTAINER_version: alpine-sts
# Rancher
RANCHER_version: latest

CETUSGUARD_version: v1
CADVISOR_version: v0.47.2
DOCKER_REGISTRY_version: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ networks:
{% set __ETCD_version = ETCD_version | default('latest') -%}
{% set __ETCD_BROWSER_version = ETCD_BROWSER_version | default('latest') -%}
{% set __PORTAINER_version = PORTAINER_version | default('latest') -%}
{% set __RANCHER_version = RANCHER_version | default('latest') -%}
{% set __CETUSGUARD_version = CETUSGUARD_version | default('latest') -%}
{% set __CADVISOR_version = CADVISOR_version | default('latest') -%}
{% set __DOCKER_REGISTRY_version = DOCKER_REGISTRY_version | default('latest') -%}
Expand Down Expand Up @@ -20697,6 +20698,39 @@ services:
restart: {{container_restart_policy}}
{% endif %} {# PORTAINER_enable #}

{% if RANCHER_enable | default(false) %}
# ================================== Rancher ========================================== #
rancher:
image: rancher/rancher:{{__RANCHER_version}}
container_name: rancher
hostname: rancher
labels:
com.platys.name: "rancher"
com.platys.description: "Kubernetes cluster management"
com.platys.webui.title: "Rancher UI"
com.platys.webui.url: "http://dataplatform:28137"
ports:
- 28370:80
- 28371:443
{%if use_timezone | default(false) %}
environment:
TZ: {{use_timezone}}
{% endif -%} {# use_timezone #}
volumes:
- ./data-transfer:/data-transfer
{% if RANCHER_volume_map_data %}
- ./container-volume/rancher/data:/var/lib/rancher
{% endif -%} {# RANCHER_volume_map_data #}
{%if use_timezone | default(false) %}
- "./etc/timezone:/etc/timezone:ro"
- "./etc/localtime:/etc/localtime:ro"
{% endif -%} {# use_timezone #}
{%if logging_driver is defined and logging_driver and logging_driver in ('fluentd','loki','syslog','splunk') | default(false) %}
<<: *logging
{% endif -%} {# logging_driver is defined ... #}
restart: {{container_restart_policy}}
{% endif %} {# RANCHER_enable #}

{% if CETUSGUARD_enable | default(false) %}
# ================================== Cetusguard ========================================== #
cetusguard:
Expand Down
5 changes: 5 additions & 0 deletions modern-data-platform-stack/generator-config/vars/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2448,6 +2448,11 @@
#
PORTAINER_enable: false

#
# ===== Rancher UI ========
#
RANCHER_enable: false

#
# ===== Cetusguard ========
#
Expand Down

0 comments on commit cbb117b

Please sign in to comment.