-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Rancher cluster template and add charts (Epinio, Podinfo, Ranc…
…her CIS Benchmark) (#28) * Update comments in vsphere values and dump chart version to 0.1.4 * Small changes * Add Rancher CIS Benchmark * Add helm repos * Add Podinfo chart * Add stackrox/kube-linter * Disable kube-linter (not working with subcharts) * Add Epinio chart
- Loading branch information
Showing
21 changed files
with
265 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
checks: | ||
addAllBuiltIn: true | ||
exclude: | ||
- "no-read-only-root-fs" | ||
- "unset-cpu-requirements" | ||
- "unset-memory-requirements" | ||
ignorePaths: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Contribute to Epinio Helm chart | ||
|
||
## How to update the dependencies | ||
|
||
```bash | ||
# makes sure the repository has been added and refreshed | ||
helm repo add epinio https://epinio.github.io/helm-charts | ||
helm repo update | ||
|
||
# searches for the latest version | ||
helm search repo -l epinio --versions | ||
|
||
# manual: update version number in Chart.yaml | ||
|
||
# updates Chart.lock | ||
helm dependency update | ||
``` | ||
|
||
## How to check the manifest code quality | ||
|
||
```bash | ||
# checks code style | ||
helm lint | ||
|
||
# checks the Kubernetes objects generated from the chart | ||
helm template epinio . -f values.yaml --namespace epinio > temp.yaml | ||
``` | ||
|
||
## How to deploy the chart from the sources | ||
|
||
### With NGINX Ingress Controller and Let's Encrypt | ||
|
||
```bash | ||
# retrieves public IP | ||
NGINX_PUBLIC_IP=`kubectl get service -n ingress-nginx ingress-nginx-controller --output jsonpath='{.status.loadBalancer.ingress[0].ip}'` | ||
|
||
# installs on a cluster | ||
helm upgrade --install epinio . -f values.yaml --create-namespace \ | ||
--set epinio.global.domain=${NGINX_PUBLIC_IP}.sslip.io \ | ||
--set epinio.global.tlsIssuer=letsencrypt-prod \ | ||
--set epinio.global.tlsIssuerEmail=<my_email_address> \ | ||
--namespace epinio | ||
|
||
# logs in Epinio (default password is "password") | ||
epinio login -u admin 'https://epinio.${NGINX_PUBLIC_IP}.sslip.io' | ||
|
||
# displays instance information | ||
epinio settings show | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: epinio | ||
repository: https://epinio.github.io/helm-charts | ||
version: 1.9.0 | ||
digest: sha256:2a7d9a9dbaeb719ba930fb014df9a01629cff73c4cd4e1f4afd7c600f0cfcbc3 | ||
generated: "2023-09-18T16:11:52.6692354+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v2 | ||
name: epinio | ||
description: Helm chart for managing Epinio | ||
type: application | ||
version: "0.1.0" | ||
appVersion: "1.9.0" | ||
dependencies: | ||
# https://github.com/epinio/helm-charts/tree/main/chart/epinio | ||
- name: epinio | ||
version: 1.9.0 | ||
repository: https://epinio.github.io/helm-charts | ||
maintainers: | ||
- name: devpro | ||
email: bertrand@devpro.fr | ||
home: https://github.com/devpro/helm-charts/tree/main/charts/epinio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Helm chart for Epinio | ||
|
||
This Helm chart will install [Epinio](https://epinio.io/) on a Kubernetes cluster. | ||
It is based on the [official Helm chart](https://artifacthub.io/packages/helm/epinio/epinio). | ||
|
||
## Introduction | ||
|
||
> Epinio is an application Platform. It deploys on Kubernetes and allows application developers and operators to work together without stepping on each others work. ([docs.epinio.io](https://docs.epinio.io/)) | ||
## Quick start | ||
|
||
- Install Epinio in a Kubernetes cluster | ||
|
||
💡 `cert-manager` must be installed | ||
|
||
```bash | ||
# makes sure devpro helm repository has been added | ||
helm repo add devpro https://devpro.github.io/helm-charts | ||
helm repo update | ||
|
||
# installs the chart with default parameters | ||
helm upgrade --install epinio devpro/epinio --create-namespace --namespace epinio | ||
|
||
# removes the installation | ||
helm uninstall epinio -n epinio | ||
kubectl delete ns epinio | ||
``` | ||
|
||
- Download [`epinio` (Epinio CLI)](https://github.com/epinio/epinio/releases/) and use it to manage workload | ||
|
||
|
||
## Going further | ||
|
||
Look at the [Contributing](CONTRIBUTING.md) page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# https://github.com/epinio/helm-charts/blob/main/chart/epinio/values.yaml | ||
epinio: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Contribute to Podinfo Helm chart | ||
|
||
## How to update the dependencies | ||
|
||
```bash | ||
# makes sure the repository has been added and refreshed | ||
helm repo add podinfo https://stefanprodan.github.io/podinfo | ||
helm repo update | ||
|
||
# searches for the latest version | ||
helm search repo -l podinfo --versions | ||
|
||
# manual: update version number in Chart.yaml | ||
|
||
# updates Chart.lock | ||
helm dependency update | ||
``` | ||
|
||
## How to check the manifest code quality | ||
|
||
```bash | ||
# checks code style | ||
helm lint | ||
|
||
# checks the Kubernetes objects generated from the chart on a specific case defined in values_mine.yaml | ||
helm template podinfo . -f values.yaml -f values_mine.yaml --namespace podinfo > temp.yaml | ||
``` | ||
|
||
## How to deploy the chart from the sources | ||
|
||
```bash | ||
# installs on a cluster | ||
helm upgrade --install podinfo . -f values.yaml --create-namespace \ | ||
--namespace podinfo \ | ||
# --debug | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: podinfo | ||
repository: https://stefanprodan.github.io/podinfo | ||
version: 6.4.1 | ||
digest: sha256:46b2ac4138ca6e33049a9310de51d0fef372031dabc892fc01dab7ce92022db4 | ||
generated: "2023-09-13T11:15:47.918467272+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v2 | ||
name: podinfo | ||
description: Helm chart for managing Podinfo | ||
type: application | ||
version: "0.1.0" | ||
appVersion: "6.4.1" | ||
dependencies: | ||
# https://github.com/stefanprodan/podinfo/tree/master/charts/podinfo | ||
- name: podinfo | ||
version: 6.4.1 | ||
repository: https://stefanprodan.github.io/podinfo | ||
maintainers: | ||
- name: devpro | ||
email: bertrand@devpro.fr | ||
home: https://github.com/devpro/helm-charts/tree/main/charts/podinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Helm chart for Podinfo | ||
|
||
This Helm chart will install [Podinfo](https://github.com/stefanprodan/podinfo) on a Kubernetes cluster. | ||
It is based on [the official Helm chart](https://github.com/stefanprodan/podinfo/tree/master/charts/podinfo). | ||
|
||
## Introduction | ||
|
||
> Podinfo is a tiny web application made with Go that showcases best practices of running microservices in Kubernetes. Podinfo is used by CNCF projects like Flux and Flagger for end-to-end testing and workshops. ([github.com](https://github.com/stefanprodan/podinfo)) | ||
See also [golang.ch](https://golang.ch/a-tiny-web-application-golang-showcases-best-practices-of-running-microservices-in-kubernetes/) | ||
|
||
## Quick start | ||
|
||
```bash | ||
# makes sure devpro helm repository has been added | ||
helm repo add devpro https://devpro.github.io/helm-charts | ||
helm repo update | ||
|
||
# installs the chart with default parameters | ||
helm upgrade --install podinfo devpro/podinfo --create-namespace --namespace podinfo | ||
|
||
# removes the installation | ||
helm uninstall podinfo -n podinfo | ||
kubectl delete ns podinfo | ||
``` | ||
|
||
## Going further | ||
|
||
Look at the [Contibuting](CONTRIBUTING.md) page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# https://github.com/stefanprodan/podinfo/blob/master/charts/podinfo/values.yaml | ||
podinfo: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v2 | ||
name: rancher-cis-benchmark | ||
description: Helm chart for managing Rancher CIS Benchmark | ||
type: application | ||
version: "0.1.0" | ||
appVersion: "4.1.0" | ||
dependencies: | ||
- name: rancher-cis-benchmark | ||
version: 4.1.0 | ||
repository: https://charts.rancher.io/ | ||
maintainers: | ||
- name: devpro | ||
email: bertrand@devpro.fr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Rancher CIS Benchmark | ||
|
||
## How to update the chart | ||
|
||
```bash | ||
# adds helm chart repository | ||
helm repo add rancher-charts https://charts.rancher.io | ||
helm repo update | ||
|
||
# searches for the latest version | ||
helm search repo -l rancher-cis-benchmark | ||
|
||
# manual: update version number in Chart.yaml | ||
|
||
# updates Chart.lock | ||
helm dependency update | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ref. https://github.com/rancher/charts/blob/release-v2.7/charts/rancher-cis-benchmark/4.1.0/values.yaml | ||
rancher-cis-benchmark: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters