Skip to content

Commit

Permalink
Merge pull request #513 from rawmind0/nodedrain
Browse files Browse the repository at this point in the history
Fix CHANGELOG.md and apps and marketplace guide format
  • Loading branch information
rawmind0 authored Nov 11, 2020
2 parents 958caf1 + 9673e3e commit f04b2ca
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 37 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.10.5 (November 6, 2020)
## 1.10.5 (November 11, 2020)

FEATURES:

Expand All @@ -7,8 +7,8 @@ FEATURES:

ENHANCEMENTS:

* Updated go mod to support Rancher `v2.5.2-rc2`
* Updated acceptance tests to use Rancher `v2.5.2-rc2`
* Updated go mod to support Rancher `v2.5.2`
* Updated acceptance tests to use Rancher `v2.5.2`
* Improved `rancher2_bootstrap` on resource creation. Number of retires on `bootstrapDoLogin` function can be configured with `retries` provider argument
* Updated `rancher2_catalog_v2` contextualized resource id with `cluster_id` prefix
* Updated `rancher2_app_v2` contextualized resource id with `cluster_id` prefix
Expand Down
80 changes: 46 additions & 34 deletions docs/guides/apps_marketplace.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,32 @@ This resource has the following arguments definition:
These are some examples how to use a new catalog v2:

* Create new repository using git repo and branch
```

```hcl
resource "rancher2_catalog_v2" "foo" {
cluster_id = "<CLUSTER_ID>""
cluster_id = "&lt;CLUSTER_ID&gt;""
name = "foo"
git_repo = "<GIT_REPO_URL>"
git_branch = "<GIT_BRANCH>"
git_repo = "&lt;GIT_REPO_URL&gt;"
git_branch = "&lt;GIT_BRANCH&gt;"
}
```

* Create new repository using http url
```

```hcl
resource "rancher2_catalog_v2" "foo-url" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "foo-url"
url = "https://<CATALOG_URL>"
url = "https://&lt;CATALOG_URL&gt;"
}
```

* Import existing repository

```
```hcl
## Define catalog at tf file
resource "rancher2_catalog_v2" "rancher-charts" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "rancher-charts"
git_repo = "https://git.rancher.io/charts"
git_branch = "main"
Expand All @@ -76,9 +78,9 @@ resource "rancher2_catalog_v2" "rancher-charts" {

* Using datasource

```
```hcl
data "rancher2_catalog_v2" "foo" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "foo"
}
```
Expand Down Expand Up @@ -109,45 +111,55 @@ These are some examples how to deploy some Rancher cerfified apps v2:

* Deploy Rancher monitoring

```
```hcl
resource "rancher2_app_v2" "rancher-monitoring" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "rancher-monitoring"
namespace = "cattle-monitoring-system"
repo_name = "rancher-charts"
chart_name = "rancher-monitoring"
chart_version = "9.4.200"
values = <<EOF
values = &lt;&lt;EOF
prometheus:
prometheusSpec:
requests:
cpu: "250m"
memory: "250Mi"
EOF
}
```

**Tip:** If you are reinstalling `rancher-monitoring` and the deployment is failing, try adding this values to app v2
```
alertmanager:
alertmanagerSpec:
enabled: false
useExistingSecret: true
configSecret: alertmanager-rancher-monitoring-alertmanager
# If you are reinstalling `rancher-monitoring` and the deployment is failing, try adding this values to app v2
#
#alertmanager:
# alertmanagerSpec:
# enabled: false
# useExistingSecret: true
# configSecret: alertmanager-rancher-monitoring-alertmanager
#Example:
# values = &lt;&lt;EOF
#alertmanager:
# alertmanagerSpec:
# enabled: false
# useExistingSecret: true
# configSecret: alertmanager-rancher-monitoring-alertmanager
#prometheus:
# prometheusSpec:
# requests:
# cpu: "250m"
# memory: "250Mi"
```

* Deploy Rancher istio and Rancher monitoring as requirement

```
```hcl
resource "rancher2_app_v2" "rancher-monitoring" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "rancher-monitoring"
namespace = "cattle-monitoring-system"
repo_name = "rancher-charts"
chart_name = "rancher-monitoring"
chart_version = "9.4.200"
values = <<EOF
values = &lt;&lt;EOF
alertmanager:
alertmanagerSpec:
enabled: false
Expand All @@ -164,7 +176,7 @@ EOF
resource "rancher2_app_v2" "rancher-istio" {
depends_on = [rancher2_app_v2.rancher-monitoring] # Rancher-istio requires rancher-monitoring
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "rancher-istio"
namespace = "istio-system"
repo_name = "rancher-charts"
Expand All @@ -175,9 +187,9 @@ resource "rancher2_app_v2" "rancher-istio" {

* Deploy Rancher cis benchmark

```
```hcl
resource "rancher2_app_v2" "rancher-cis-benchmark" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "rancher-cis-benchmark"
namespace = "istio-system"
repo_name = "rancher-charts"
Expand All @@ -189,15 +201,15 @@ resource "rancher2_app_v2" "rancher-cis-benchmark" {

* Deploy Rancher backup

```
```hcl
resource "rancher2_app_v2" "rancher-backup" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "rancher-backup"
namespace = "cattle-resources-system"
repo_name = "rancher-charts"
chart_name = "rancher-backup"
chart_version = "1.0.200"
values = <<EOF
values = &lt;&lt;EOF
persistence:
enabled: false
size: 2Gi
Expand All @@ -220,9 +232,9 @@ EOF

* Deploy Rancher logging

```
```hcl
resource "rancher2_app_v2" "rancher-logging" {
cluster_id = "<CLUSTER_ID>"
cluster_id = "&lt;CLUSTER_ID&gt;"
name = "rancher-logging"
namespace = "cattle-logging-system"
repo_name = "rancher-charts"
Expand Down

0 comments on commit f04b2ca

Please sign in to comment.