Skip to content

Commit

Permalink
🚀 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevtg authored Oct 21, 2020
2 parents bbba7e7 + 6fcd52b commit c01e717
Show file tree
Hide file tree
Showing 87 changed files with 427 additions and 7,645 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Release Notes

## Version 0.8.0 - 2020-10-15

Upgrades:

- cert-manager: 1.0.3
- external-dns: 3.4.9
- nginx-ingress: REMOVED
- ingress-nginx: 3.7.1
- prometheus-operator: REMOVED
- kube-prometheus-stack: 10.1.0
- loki-stack: 0.41.2
- vault: 0.7.0
- velero: 2.13.3

Improvements:

- Several samples for local testing

## Version 0.7.2 and before

Crazy times, no record. Sorry for that.
87 changes: 87 additions & 0 deletions DEVELOP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Development <!-- omit in toc -->

Este documento explica como montar um ambiente para desenvolvimento do chart do vtg-ipaas.

- [Pré-requisitos](#pré-requisitos)
- [Arquivo /etc/hosts](#arquivo-etchosts)
- [Ferramentas](#ferramentas)
- [Cluster k3d local](#cluster-k3d-local)
- [Local VKPR deployment](#local-vkpr-deployment)
- [Get chart dependencies](#get-chart-dependencies)
- [Helm upgrade/install](#helm-upgradeinstall)
- [Testing local app](#testing-local-app)

## Pré-requisitos

### Arquivo /etc/hosts

Insira a linha abaixo no arquivo /etc/hosts da estação de desenvolvimento:

```
127.0.0.1 whoami.localdomain
```

### Ferramentas

Instale localmente as seguintes ferramentas:

- k3d (versão 3.x ou superior)
- helm (v3 ou superior)
- kubectl

### Cluster k3d local

Crie um cluster k3d local para uso durante o desenvolvimento. Isto pode ser feito de duas formas:

* Usando o LB interno do k3d (forma preferida) - esta forma cria tanto um binding em `localhost:8080` quanto um IP na rede bridge para o ingress controller do VKPR:

```sh
k3d cluster create vkpr-local \
-p "8080:80@loadbalancer" \
-p "8443:443@loadbalancer" \
--k3s-server-arg "--no-deploy=traefik"
```

* Usando NodePort - esta forma cria um binding em `localhost:8080` para o serviço que estiver no NodePort 32080 (este **não é** o defult do ingress controller do VKPR):

```sh
k3d cluster create vkpr-local \
-p "8080:32080@agent[0]" --agents 1 \
--k3s-server-arg "--no-deploy=traefik" \
--k3s-server-arg "--no-deploy=servicelb"
```

Ambos os casos acima desligam o Traefik (ingress default do k3d), pois usaremos o Nginx Ingress Controller que é parte do VKPR. Após a criação do cluster ajuste o KUBECONFIG:

```sh
export KUBECONFIG=$(k3d kubeconfig write vkpr-local)
kubectl cluster-info
```

## Local VKPR deployment

### Get chart dependencies

```sh
helm dependency update ./charts/vkpr
```

### Helm upgrade/install

```sh
helm upgrade -i vkpr --skip-crds -f ./examples/local/values-local-minimal.yaml ./charts/vkpr
```

Check the LoadBalancer external IP (might take a few seconds):

```sh
kubectl get svc
```

### Testing local app

```sh
# both tests are the same
curl whoami.localdomain:8080
curl -H "Host: whoami.localdomain" <EXTERNAL-IP>
```
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ The **Backup Stack** is dedicated to backup and restore tools in order to migrat

## Charts version

| Charts | VKPR 0.7.2 |
| Charts | VKPR 0.8.0 |
|------------------------------------------------------------------------------------------------|------------|
| [cert-manager](https://charts.vertigo.com.br/docs/stacks#cert-manager) | `1.0.1` |
| [ExternalDNS](https://charts.vertigo.com.br/docs/stacks#externaldns) | `3.2.2` |
| [Loki](https://charts.vertigo.com.br/docs/stacks#loki) | `0.37.0` |
| [cert-manager](https://charts.vertigo.com.br/docs/stacks#cert-manager) | `1.0.3` |
| [ExternalDNS](https://charts.vertigo.com.br/docs/stacks#externaldns) | `3.4.9` |
| [Loki](https://charts.vertigo.com.br/docs/stacks#loki) | `0.41.2` |
| [Keycloak](https://charts.vertigo.com.br/docs/stacks#keycloak) | `8.2.2` |
| [NGINX Ingress Controller](https://charts.vertigo.com.br/docs/stacks#nginx-ingress-controller) | `1.34.3` |
| [Prometheus Operator](https://charts.vertigo.com.br/docs/stacks#prometheus-operator) | `8.12.3` |
| [Vault](https://charts.vertigo.com.br/docs/stacks#vault) | `0.5.0` |
| [Velero](https://charts.vertigo.com.br/docs/stacks#velero) | `2.7.4` |
| [NGINX Ingress Controller](https://charts.vertigo.com.br/docs/stacks#nginx-ingress-controller) | `3.7.1` |
| [Kube Prometheus Stack](https://charts.vertigo.com.br/docs/stacks#prometheus-operator) | `10.1.0` |
| [Vault](https://charts.vertigo.com.br/docs/stacks#vault) | `0.7.0` |
| [Velero](https://charts.vertigo.com.br/docs/stacks#velero) | `2.13.3` |

## Requisites

Expand Down
8 changes: 8 additions & 0 deletions charts/vkpr/CRDs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CRDs de subcharts

Estes CRDs precisam ser instalados previamente *ou* automaticamente via pasta "crds".
Em produção recomendamos *não* instalar automaticamente (usar "--skip-crds").

## cert-manager

* https://github.com/jetstack/cert-manager/releases/download/v1.0.3/cert-manager.crds.yaml
34 changes: 19 additions & 15 deletions charts/vkpr/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: vkpr
version: 0.7.2
version: 0.8.0
appVersion: v1.4.0
home: https://github.com/vertigobr/vkpr
icon: https://vertigo.com.br/wp-content/uploads/favicon.png
Expand All @@ -17,18 +17,18 @@ dependencies:
### INGRESS STACK ###
- name: external-dns
repository: https://charts.bitnami.com/bitnami
version: 3.2.2
version: 3.4.9
condition: external-dns.enabled

- name: nginx-ingress
repository: https://kubernetes-charts.storage.googleapis.com
version: 1.34.3
condition: nginx-ingress.enabled
- name: ingress-nginx
repository: https://kubernetes.github.io/ingress-nginx
version: 3.7.1
condition: ingress-nginx.enabled

### LOGGING STACK ###
- name: loki-stack
repository: https://grafana.github.io/loki/charts
version: 0.37.0
version: 0.41.2
condition: loki-stack.enabled
#
# LOGGING STACK
Expand Down Expand Up @@ -68,10 +68,10 @@ dependencies:
# condition: fluent-bit.enabled

### MONITORING STACK ###
- name: prometheus-operator
repository: https://kubernetes-charts.storage.googleapis.com
version: 8.12.3
condition: prometheus-operator.enabled
- name: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
version: 10.1.0
condition: kube-prometheus-stack.enabled

# - name: metrics-server
# repository: https://kubernetes-charts.storage.googleapis.com
Expand All @@ -91,7 +91,7 @@ dependencies:
### SECURITY STACK ###
- name: cert-manager
repository: https://charts.jetstack.io
version: v1.0.1
version: v1.0.3
condition: cert-manager.enabled

- name: keycloak
Expand All @@ -101,11 +101,15 @@ dependencies:

- name: vault
repository: https://helm.releases.hashicorp.com
version: 0.5.0
version: 0.7.0
condition: vault.enabled

### BACKUP STACK ###
# - name: velero
# repository: https://kubernetes-charts.storage.googleapis.com/
# version: 2.7.4
# condition: velero.enabled
- name: velero
repository: https://kubernetes-charts.storage.googleapis.com/
version: 2.7.4
repository: https://vmware-tanzu.github.io/helm-charts/
version: 2.13.3
condition: velero.enabled
File renamed without changes.
File renamed without changes.
35 changes: 25 additions & 10 deletions charts/vkpr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,28 @@
# Declare variables to be passed into your templates.

# subchart defaults
nginx-ingress:
ingress-nginx:
enabled: true
controller:
electionID: vkpr-ingress-controller-leader
publishService:
enabled: true
autoscaling:
enabled: false

# old chart (former stable repo)
# nginx-ingress:
# enabled: true
# controller:
# electionID: vkpr-ingress-controller-leader

external-dns:
enabled: false
txtPrefix: vkpr

cert-manager:
enabled: false
installCRDs: true
installCRDs: false

graylog:
enabled: false
Expand All @@ -29,13 +39,18 @@ vault:
enabled: false

loki-stack:
enabled: true
enabled: false

prometheus-operator:
enabled: true
kube-prometheus-stack:
enabled: false
prometheusOperator:
createCustomResource: false

# prometheus-operator:
# enabled: true
# prometheusOperator:
# createCustomResource: false

# dados para o CRD do ACME
acme:
email: [email protected]
Expand Down Expand Up @@ -117,10 +132,10 @@ affinity: {}
# BACKUP STACK
velero:
enabled: false
image:
repository: velero/velero
tag: v1.2.0
pullPolicy: IfNotPresent
# image:
# repository: velero/velero
# tag: v1.2.0
# pullPolicy: IfNotPresent
# Annotations to add to the Velero deployment's pod template. Optional.
#
# If using kube2iam or kiam, use the following annotation with your AWS_ACCOUNT_ID
Expand Down Expand Up @@ -167,7 +182,7 @@ velero:
enabled: true
additionalLabels: {}
# Install CRDs as a templates. Enabled by default.
installCRDs: true
installCRDs: false

##
## End of deployment-related settings.
Expand Down
35 changes: 0 additions & 35 deletions charts/vkpr/vault-helm/.circleci/config.yml

This file was deleted.

12 changes: 0 additions & 12 deletions charts/vkpr/vault-helm/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions charts/vkpr/vault-helm/.helmignore

This file was deleted.

Loading

0 comments on commit c01e717

Please sign in to comment.