Fábio Kaiser Rauber 2 years ago
parent
commit
779eb631a0
  1. 150
      charts/sigi/v0.1.0/questions.yaml
  2. 10
      charts/sigi/v0.1.0/templates/NOTES.txt
  3. 0
      charts/sigi/v0/Chart.lock
  4. 2
      charts/sigi/v0/Chart.yaml
  5. 0
      charts/sigi/v0/app-readme.md
  6. 0
      charts/sigi/v0/charts/postgresql-11.6.8.tgz
  7. 154
      charts/sigi/v0/questions.yaml
  8. 5
      charts/sigi/v0/templates/NOTES.txt
  9. 0
      charts/sigi/v0/templates/_helpers.tpl
  10. 52
      charts/sigi/v0/templates/deployment.yaml
  11. 0
      charts/sigi/v0/templates/hpa.yaml
  12. 0
      charts/sigi/v0/templates/ingress.yaml
  13. 0
      charts/sigi/v0/templates/pvc-media.yaml
  14. 0
      charts/sigi/v0/templates/secretkey.yaml
  15. 0
      charts/sigi/v0/templates/service.yaml
  16. 0
      charts/sigi/v0/templates/velero-schedule-monthly.yaml
  17. 0
      charts/sigi/v0/templates/velero-schedule-weekdays.yaml
  18. 0
      charts/sigi/v0/templates/velero-schedule-weekly.yaml
  19. 31
      charts/sigi/v0/values.yaml

150
charts/sigi/v0.1.0/questions.yaml

@ -1,150 +0,0 @@
labels:
io.cattle.role: project
categories:
- Gerencial
questions:
# Informações Básicas
- variable: sigi.hostname
default: "sigi.interlegis.leg.br"
description: "Endereço para acesso ao SIGI"
label: "URL do SIGI"
type: string
group: Básico
required: true
- variable: sigi.adminEmail
default: "sigi@interlegis.leg.br"
description: "SIGI Administrator"
label: Contato
type: string
group: Básico
required: true
- variable: sigi.adminPassword
default: "sigi"
description: "Senha do usuário administrativo do SIGI"
label: Senha Admin
type: password
group: Básico
required: true
# Ingress
- variable: ingress.tls.enabled
default: true
type: boolean
description: "Habilitar criptografia do protocolo HTTP (HTTPS)?"
label: "Habilitar TLS?"
required: false
group: Ingress
show_subquestion_if: true
subquestions:
- variable: ingress.tls.provider
default: letsencrypt
type: enum
description: "Qual provedor de certificados utilizar?"
label: "Provedor de certificados"
required: false
group: Ingress
options:
- letsencrypt
- letsencrypt-hml
- aws
- variable: ingress.class
default: nginx
type: enum
description: "Qual o Ingress Controller?"
label: "Classe Ingress"
required: false
group: Ingress
options:
- nginx
- alb
# Correio
- variable: sigi.emailSendUser
default: "sigi@interlegis.leg.br"
description: "Remetente dos e-mails enviados pelo SIGI"
label: "Remetente"
type: string
group: Correio
required: false
- variable: sigi.useTls
default: "False"
description: "Usar TLS ao conectar no servidor SMTP?"
label: "Usar TLS"
type: enum
group: Correio
options:
- "True"
- "False"
required: false
- variable: sigi.emailPort
default: 25
description: "Porta de envio de E-mail (SMTP)"
type: int
label: "Porta SMTP"
required: false
group: Correio
- variable: sigi.emailHost
default: "smtp.interlegis.leg.br"
description: "Servidor de envio de e-mail (SMTP)"
label: "Servidor SMTP"
type: string
group: Correio
required: false
# PostgreSQL
- variable: postgresql.internal
default: true
description: "Fazer o deploy do Postgres?"
label: "Postgres Interno?"
type: boolean
group: PostgreSQL
required: false
- variable: postgresql.auth.Password
default: "sigi"
description: "Senha do banco de dados Postgres"
label: "Senha do Postgres"
type: password
group: PostgreSQL
required: true
# Avançado
- variable: sigi.debug
default: "False"
description: "Habilitar mensagens de Debug?"
label: "Debug?"
type: enum
group: Avançado
options:
- "True"
- "False"
- variable: sigi.timeZone
default: "America/Sao_Paulo"
description: "Fuso Horário do SIGI"
type: enum
label: "Fuso"
options:
- "America/Sao_Paulo"
- "America/Fortaleza"
- "America/Belem"
- "America/Araguaina"
- "America/Bahia"
- "America/Boa_Vista"
- "America/Campo_Grande"
- "America/Cuiaba"
- "America/Maceio"
- "America/Manaus"
- "America/Porto_Velho"
- "America/Recife"
- "America/Rio_Branco"
- "America/Sao_Paulo"
required: true
group: Avançado
- variable: velero.backup.enabled
default: false
type: boolean
label: "Habilitar backup com Velero?"
description: "Criar ou não os objetos para backup com o Velero."
required: false
group: Avançado

10
charts/sigi/v0.1.0/templates/NOTES.txt

@ -1,10 +0,0 @@
1. Seu SIGI pode ser acessado através da URL:
{{- if .Values.ingress.enabled }}
http{{ if .Values.ingress.tls.enabled }}s{{ end }}://{{ .Values.sigi.hostname }}
{{- end }}
2. Utilize as seguintes credenciais para acesso inicial:
Usuario: sigi
Senha: {{ .Values.sigi.adminPassword }}
3. Usuario de administração do Postgres:
Usuario: sigi
Senha: {{ .Values.postgresql.postgresqlPassword }}

0
charts/sigi/v0.1.0/Chart.lock → charts/sigi/v0/Chart.lock

2
charts/sigi/v0.1.0/Chart.yaml → charts/sigi/v0/Chart.yaml

@ -8,7 +8,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0 version: 0.1.2
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to

0
charts/sigi/v0.1.0/app-readme.md → charts/sigi/v0/app-readme.md

0
charts/sigi/v0.1.0/charts/postgresql-11.6.8.tgz → charts/sigi/v0/charts/postgresql-11.6.8.tgz

154
charts/sigi/v0/questions.yaml

@ -0,0 +1,154 @@
labels:
io.cattle.role: project
categories:
- Gerencial
questions:
# Informações Básicas
- variable: sigi.hostname
default: sigidsv.interlegis.leg.br
description: "Endereço para acesso ao SIGI"
label: "URL do SIGI"
type: string
group: Básico
required: true
# Ingress
- variable: ingress.tls.enabled
default: true
type: boolean
description: "Habilitar criptografia do protocolo HTTP (HTTPS)?"
label: "Habilitar TLS?"
required: false
group: Ingress
show_subquestion_if: true
subquestions:
- variable: ingress.tls.provider
default: letsencrypt
type: enum
description: "Qual provedor de certificados utilizar?"
label: "Provedor de certificados"
required: false
group: Ingress
options:
- letsencrypt
- letsencrypt-hml
- aws
- variable: ingress.class
default: nginx
type: enum
description: "Qual o Ingress Controller?"
label: "Classe Ingress"
required: false
group: Ingress
options:
- nginx
- alb
## Correio
#- variable: sigi.emailSendUser
# default: "sigi@interlegis.leg.br"
# description: "Remetente dos e-mails enviados pelo SIGI"
# label: "Remetente"
# type: string
# group: Correio
# required: false
#- variable: sigi.useTls
# default: "False"
# description: "Usar TLS ao conectar no servidor SMTP?"
# label: "Usar TLS"
# type: enum
# group: Correio
# options:
# - "True"
# - "False"
# required: false
#- variable: sigi.emailPort
# default: 25
# description: "Porta de envio de E-mail (SMTP)"
# type: int
# label: "Porta SMTP"
# required: false
# group: Correio
#- variable: sigi.emailHost
# default: "smtp.interlegis.leg.br"
# description: "Servidor de envio de e-mail (SMTP)"
# label: "Servidor SMTP"
# type: string
# group: Correio
# required: false
## PostgreSQL
#- variable: postgresql.internal
# default: true
# description: "Fazer o deploy do Postgres?"
# label: "Postgres Interno?"
# type: boolean
# group: PostgreSQL
# required: false
#- variable: postgresql.auth.Password
# default: "sigi"
# description: "Senha do banco de dados Postgres"
# label: "Senha do Postgres"
# type: password
# group: PostgreSQL
# required: true
# Avançado
- variable: sigi.debug
default: "False"
description: "Habilitar mensagens de Debug?"
label: "Debug?"
type: enum
options:
- "True"
- "False"
group: Avançado
required: true
- variable: image.pullPolicy
default: IfNotPresent
description: "Politica de carga da imagem docker do SIGI."
label: "Carregar a imagem apenas quando não estiver presente?"
type: enum
options:
- IfNotPresent
- Always
group: Avançado
required: true
#- variable: sigi.timeZone
# default: "America/Sao_Paulo"
# description: "Fuso Horário do SIGI"
# label: "Fuso"
# type: enum
# options:
# - "America/Sao_Paulo"
# - "America/Fortaleza"
# - "America/Belem"
# - "America/Araguaina"
# - "America/Bahia"
# - "America/Boa_Vista"
# - "America/Campo_Grande"
# - "America/Cuiaba"
# - "America/Maceio"
# - "America/Manaus"
# - "America/Porto_Velho"
# - "America/Recife"
# - "America/Rio_Branco"
# - "America/Sao_Paulo"
# group: Avançado
# required: true
# Backup
- variable: velero.backup.enabled
default: false
label: "Habilitar backup com Velero?"
description: "Criar ou não os objetos para backup com o Velero."
type: boolean
group: Backup
required: false

5
charts/sigi/v0/templates/NOTES.txt

@ -0,0 +1,5 @@
1. Seu SIGI pode ser acessado através da URL:
{{- if .Values.ingress.enabled }}
http{{ if .Values.ingress.tls.enabled }}s{{ end }}://{{ .Values.sigi.hostname }}
{{- end }}

0
charts/sigi/v0.1.0/templates/_helpers.tpl → charts/sigi/v0/templates/_helpers.tpl

52
charts/sigi/v0.1.0/templates/deployment.yaml → charts/sigi/v0/templates/deployment.yaml

@ -37,26 +37,50 @@ spec:
containerPort: 80 containerPort: 80
protocol: TCP protocol: TCP
env: env:
- name: DATABASE_URL
value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.auth.username .Values.postgresql.auth.password (include "postgresql.fullname" .) .Values.postgresql.auth.database| quote }}
- name: ADMIN_PASSWORD
value: "{{ .Values.sigi.adminPassword }}"
- name: ADMIN_EMAIL
value: "{{ .Values.sigi.adminEmail }}"
- name: EMAIL_SEND_USER
value: "{{ .Values.sigi.emailSendUser }}"
- name: DEBUG - name: DEBUG
value: "{{ .Values.sigi.debug }}" value: "{{ .Values.sigi.debug }}"
- name: USE_TLS
value: "{{ .Values.sigi.useTls }}"
- name: EMAIL_PORT
value: "{{ .Values.sigi.emailPort }}"
- name: EMAIL_HOST
value: "{{ .Values.sigi.emailHost }}"
- name: TZ - name: TZ
value: "{{ .Values.sigi.timeZone }}" value: "{{ .Values.sigi.timeZone }}"
- name: LANG - name: LANG
value: "{{ .Values.sigi.language }}" value: "{{ .Values.sigi.language }}"
- name: DATABASE_URL
value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.auth.username .Values.postgresql.auth.password (include "postgresql.fullname" .) .Values.postgresql.auth.database| quote }}
- name: EMAIL_PORT
value: "{{ .Values.sigi.emailPort }}"
- name: EMAIL_HOST
value: "{{ .Values.sigi.emailHost }}"
- name: DEFAULT_FROM_EMAIL
value: "{{ .Values.sigi.defaultFromEmail }}"
- name: AUTH_LDAP_SERVER_URI
value: "{{ .Values.sigi.auth.ldap.serverURI }}"
- name: AUTH_LDAP_BIND_DN
value: "{{ .Values.sigi.auth.ldap.bindDN }}"
- name: AUTH_LDAP_BIND_PASSWORD
value: "{{ .Values.sigi.auth.ldap.bindPwd }}"
- name: AUTH_LDAP_USER
value: "{{ .Values.sigi.auth.ldap.user }}"
- name: AUTH_LDAP_USER_SEARCH_STRING
value: "{{ .Values.sigi.auth.ldap.userSearchString }}"
- name: AUTH_LDAP_GROUP
value: "{{ .Values.sigi.auth.ldap.group }}"
- name: AUTH_LDAP_GROUP_SEARCH_STRING
value: "{{ .Values.sigi.auth.ldap.groupSearchString }}"
- name: AUTH_LDAP_GROUP_TYPE_STRING
value: "{{ .Values.sigi.auth.ldap.groupTypeString }}"
- name: AUTH_LDAP_USER_ATTR_MAP
value: "{{ .Values.sigi.auth.ldap.userAttrMap }}"
- name: AUTH_LDAP_PROFILE_ATTR_MAP
value: "{{ .Values.sigi.auth.ldap.profileAttrMap }}"
- name: AUTH_LDAP_FIND_GROUP_PERMS
value: "{{ .Values.sigi.auth.ldap.findGroupPerms }}"
- name: AUTH_LDAP_MIRROR_GROUPS
value: "{{ .Values.sigi.auth.ldap.mirrorGroups }}"
- name: AUTH_LDAP_CACHE_GROUPS
value: "{{ .Values.sigi.auth.ldap.cacheGroups }}"
- name: AUTH_LDAP_GROUP_CACHE_TIMEOUT
value: "{{ .Values.sigi.auth.ldap.groupCacheTimeout }}"
- name: AUTH_PROFILE_MODULE
value: "{{ .Values.sigi.auth.profileModule }}"
volumeMounts: volumeMounts:
# - mountPath: /var/interlegis/sigi/data # - mountPath: /var/interlegis/sigi/data
# name: data # name: data

0
charts/sigi/v0.1.0/templates/hpa.yaml → charts/sigi/v0/templates/hpa.yaml

0
charts/sigi/v0.1.0/templates/ingress.yaml → charts/sigi/v0/templates/ingress.yaml

0
charts/sigi/v0.1.0/templates/pvc-media.yaml → charts/sigi/v0/templates/pvc-media.yaml

0
charts/sigi/v0.1.0/templates/secretkey.yaml → charts/sigi/v0/templates/secretkey.yaml

0
charts/sigi/v0.1.0/templates/service.yaml → charts/sigi/v0/templates/service.yaml

0
charts/sigi/v0.1.0/templates/velero-schedule-monthly.yaml → charts/sigi/v0/templates/velero-schedule-monthly.yaml

0
charts/sigi/v0.1.0/templates/velero-schedule-weekdays.yaml → charts/sigi/v0/templates/velero-schedule-weekdays.yaml

0
charts/sigi/v0.1.0/templates/velero-schedule-weekly.yaml → charts/sigi/v0/templates/velero-schedule-weekly.yaml

31
charts/sigi/v0.1.0/values.yaml → charts/sigi/v0/values.yaml

@ -48,16 +48,32 @@ persistence:
size: 2Gi size: 2Gi
sigi: sigi:
adminPassword: altereme
adminEmail: sigi@interlegis.leg.br
emailSendUser: no-reply@interlegis.leg.br
debug: 'False' debug: 'False'
useTls: 'False' hostname: 'sigidsv.interlegis.leg.br'
emailPort: 25
emailHost: mail.interlegis.leg.br
timeZone: 'America/Sao_Paulo' timeZone: 'America/Sao_Paulo'
hostname: 'sigi.interlegis.leg.br'
language: 'pt_BR.UTF-8' language: 'pt_BR.UTF-8'
emailPort: 25
emailHost: 'smtp.interlegis.leg.br'
defaultFromEmail: 'sigi@interlegis.leg.br'
auth:
ldap:
serverURI: 'ldap://ad.senado.gov.br'
bindDN: 'CN=Sistema de Informações Gerenciais do Interlegis Service Account,OU=_UsuariosServicos,OU=2-AdministracaoSistemas,DC=senado,DC=gov,DC=br'
bindPwd: 'RgtJdtvas7s4BSpjnVnR'
user: 'U=UsuariosPessoas,DC=senado,DC=gov,DC=br'
userSearchString: '(sAMAccountName=%(user)s)'
group: 'OU=GruposAutomaticosOU,DC=senado,DC=gov,DC=br'
groupSearchString: '(objectClass=Group)'
groupTypeString: 'cn'
# userAttrMap: {"first_name": "givenName", "last_name": "sn", "email": "userPrincipalName", 'is_staff': "cn",}
userAttrMap: ''
# profileAttrMap: {"nome_completo": "cn"}
profileAttrMap: ''
findGroupPerms: True
mirrorGroups: True
cacheGroups: True
groupCacheTimeout: 3600
profileModule: 'servidores.Servidor'
ingress: ingress:
enabled: true enabled: true
@ -113,7 +129,6 @@ postgresql:
cpu: 50m cpu: 50m
memory: 64Mi memory: 64Mi
resources: resources:
limits: limits:
cpu: 1000m cpu: 1000m
Loading…
Cancel
Save