-
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.
- Loading branch information
Showing
87 changed files
with
427 additions
and
7,645 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
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. |
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,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> | ||
``` |
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,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 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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] | ||
|
@@ -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 | ||
|
@@ -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. | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.