Browse Source

Imported E-democracia chart, was already in Helm v3

master
Fábio Kaiser Rauber 4 years ago
parent
commit
9da0ee08a2
  1. 23
      charts/edemocracia/v0.4.0/.helmignore
  2. 9
      charts/edemocracia/v0.4.0/Chart.lock
  3. 33
      charts/edemocracia/v0.4.0/Chart.yaml
  4. BIN
      charts/edemocracia/v0.4.0/charts/postgresql-8.6.13.tgz
  5. BIN
      charts/edemocracia/v0.4.0/charts/redis-10.6.3.tgz
  6. 19
      charts/edemocracia/v0.4.0/templates/NOTES.txt
  7. 79
      charts/edemocracia/v0.4.0/templates/_helpers.tpl
  8. 19
      charts/edemocracia/v0.4.0/templates/audiencias-pvc.yaml
  9. 131
      charts/edemocracia/v0.4.0/templates/audienciasweb-deployment.yaml
  10. 19
      charts/edemocracia/v0.4.0/templates/audienciasweb-service.yaml
  11. 131
      charts/edemocracia/v0.4.0/templates/audienciasworker-deployment.yaml
  12. 19
      charts/edemocracia/v0.4.0/templates/discourse-assets-pvc.yaml
  13. 19
      charts/edemocracia/v0.4.0/templates/discourse-cache-pvc.yaml
  14. 132
      charts/edemocracia/v0.4.0/templates/discourse-deployment.yaml
  15. 19
      charts/edemocracia/v0.4.0/templates/discourse-img-pvc.yaml
  16. 19
      charts/edemocracia/v0.4.0/templates/discourse-js-pvc.yaml
  17. 19
      charts/edemocracia/v0.4.0/templates/discourse-service.yaml
  18. 151
      charts/edemocracia/v0.4.0/templates/edemocracia-deployment.yaml
  19. 17
      charts/edemocracia/v0.4.0/templates/edemocracia-pvc.yaml
  20. 17
      charts/edemocracia/v0.4.0/templates/edemocracia-service.yaml
  21. 40
      charts/edemocracia/v0.4.0/templates/ingress.yaml
  22. 111
      charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml
  23. 17
      charts/edemocracia/v0.4.0/templates/nginx-service.yaml
  24. 128
      charts/edemocracia/v0.4.0/templates/wikilegis-deployment.yaml
  25. 19
      charts/edemocracia/v0.4.0/templates/wikilegis-pvc.yaml
  26. 19
      charts/edemocracia/v0.4.0/templates/wikilegis-service.yaml
  27. 196
      charts/edemocracia/v0.4.0/values.yaml

23
charts/edemocracia/v0.4.0/.helmignore

@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

9
charts/edemocracia/v0.4.0/Chart.lock

@ -0,0 +1,9 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 8.6.13
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 10.6.3
digest: sha256:988f8160c4bd6ea76a95e38d6ee19b07676affd51e6b05bc0e2ce29f488e8c9a
generated: "2020-04-07T14:22:09.711759-03:00"

33
charts/edemocracia/v0.4.0/Chart.yaml

@ -0,0 +1,33 @@
apiVersion: v2
name: edemocracia
description: Portal que visa ampliar a participação social no processo legislativo e aproximar cidadãos e seus representantes por meio da interação digital.
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# 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.
version: 0.4.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.3.3
icon: https://git.interlegis.leg.br/SEIT/rancher-charts/raw/master/images/edemocracia.png
# Dependencies
dependencies:
- name: postgresql
version: 8.6.13
repository: https://charts.bitnami.com/bitnami
- name: redis
version: 10.6.3
repository: https://charts.bitnami.com/bitnami

BIN
charts/edemocracia/v0.4.0/charts/postgresql-8.6.13.tgz

Binary file not shown.

BIN
charts/edemocracia/v0.4.0/charts/redis-10.6.3.tgz

Binary file not shown.

19
charts/edemocracia/v0.4.0/templates/NOTES.txt

@ -0,0 +1,19 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }}
{{- end }}
{{- else if contains "NodePort" .Values.nginx.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "edemocracia.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.nginx.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "edemocracia.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "edemocracia.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.nginx.service.port }}
{{- else if contains "ClusterIP" .Values.nginx.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "edemocracia.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
{{- end }}

79
charts/edemocracia/v0.4.0/templates/_helpers.tpl

@ -0,0 +1,79 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "edemocracia.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "edemocracia.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "edemocracia.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Common labels
*/}}
{{- define "edemocracia.labels" -}}
helm.sh/chart: {{ include "edemocracia.chart" . }}
{{ include "edemocracia.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{/*
Selector labels
*/}}
{{- define "edemocracia.selectorLabels" -}}
app.kubernetes.io/name: {{ include "edemocracia.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{/*
Create the name of the service account to use
*/}}
{{- define "edemocracia.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "edemocracia.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{/*
Create a default fully qualified app name for postgresql.
*/}}
{{- define "postgresql.fullname" -}}
{{- printf "%s-%s" .Release.Name "postgresql" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name for redis.
*/}}
{{- define "redis.fullname" -}}
{{- printf "%s-%s" .Release.Name "redis" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

19
charts/edemocracia/v0.4.0/templates/audiencias-pvc.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.audiencias.enabled "True" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-audiencias
spec:
accessModes:
- {{ .Values.audiencias.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.audiencias.persistence.size }}
{{- if .Values.audiencias.persistence.storageClass }}
{{- if (eq "-" .Values.audiencias.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.audiencias.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

131
charts/edemocracia/v0.4.0/templates/audienciasweb-deployment.yaml

@ -0,0 +1,131 @@
{{- if eq .Values.audiencias.enabled "True" }}
{{- $edemoUrl := (index .Values.ingress.hosts 0) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "edemocracia.fullname" . }}-audienciasweb
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "edemocracia.selectorLabels" . | nindent 8 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ include "edemocracia.fullname" . }}-audienciasweb
image: "{{ .Values.audiencias.image.repository }}:{{ .Values.audiencias.image.tag }}"
imagePullPolicy: {{ .Values.audiencias.image.pullPolicy }}
args:
- ./start-web.sh
env:
- name: ADMIN_EMAIL
value: {{ .Values.edemocracia.admin.email | quote }}
- name: ADMIN_PASSWORD
value: {{ .Values.edemocracia.admin.password | quote }}
- name: ADMIN_USERNAME
value: admin
- name: ALLOWED_HOSTS
value: audienciasweb, localhost, 127.0.0.1, "{{ $edemoUrl }}"
- name: COMPRESS_OFFLINE
value: "True"
- name: DATABASE_ENGINE
value: postgresql_psycopg2
- name: DATABASE_HOST
value: {{ (include "postgresql.fullname" .) }}
- name: DATABASE_NAME
value: audiencias
- name: DATABASE_PASSWORD
value: {{ .Values.postgresql.postgresqlPassword | quote }}
- name: DATABASE_PORT
value: "5432"
- name: DATABASE_USER
value: {{ .Values.postgresql.postgresqlUsername | quote }}
- name: DEBUG
value: "False"
- name: DEFAULT_FROM_EMAIL
value: '"Portal e-Democracia[audiencias]" <{{ .Values.edemocracia.admin.email }}>'
- name: DJANGO_SECRET_KEY
value: {{ .Values.edemocracia.apikey | quote }}
- name: EMAIL_HOST
value: {{ .Values.smtp.host | quote }}
- name: EMAIL_HOST_PASSWORD
value: {{ .Values.smtp.password | quote }}
- name: EMAIL_HOST_USER
value: {{ .Values.smtp.username | quote }}
- name: EMAIL_PORT
value: {{ .Values.smtp.port | quote }}
- name: EMAIL_USE_TLS
value: {{ .Values.smtp.tls | quote}}
- name: ENABLE_REMOTE_USER
value: "True"
- name: FORCE_SCRIPT_NAME
value: /audiencias
- name: GOOGLE_ANALYTICS_ID
value: {{ .Values.edemocracia.googleAnalyticsId | quote }}
- name: LOGIN_REDIRECT_URL
value: /
- name: LOGIN_URL
value: /
- name: LOGOUT_REDIRECT_URL
value: /
- name: NOTIFICATION_EMAIL_LIST
value: "{{ .Values.edemocracia.admin.email }},{{ .Values.audiencias.notifEmailList }}"
- name: OLARK_ID
value: {{ .Values.edemocracia.olarkId | quote }}
- name: RECAPTCHA_PRIVATE_KEY
value: {{ .Values.edemocracia.recaptcha.privateKey | quote }}
- name: RECAPTCHA_SITE_KEY
value: {{ .Values.edemocracia.recaptcha.siteKey | quote }}
- name: REDIS_SERVER
value: {{ (include "redis.fullname" .) }}-master
- name: SESSION_COOKIE_NAME
value: audiencias_session
- name: SITE_DOMAIN
value: "{{ $edemoUrl }}"
- name: SITE_NAME
value: {{ .Values.edemocracia.siteName | quote }}
- name: STATIC_URL
value: /audiencias/static/
- name: URL_PREFIX
value: audiencias
- name: WEBSERVICE_URL
value: {{ .Values.audiencias.webservice.url | quote }}
- name: WORDS_BLACK_LIST
value: {{ .Values.audiencias.wordsBlacklist | quote }}
resources:
{{- toYaml .Values.audiencias.resources | nindent 12 }}
volumeMounts:
- mountPath: /var/labhacker/audiencias/public/
name: {{ include "edemocracia.fullname" . }}-audiencias
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: {{ include "edemocracia.fullname" . }}-audiencias
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-audiencias
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/audienciasweb-service.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.audiencias.enabled "True" }}
apiVersion: v1
kind: Service
metadata:
name: audienciasweb
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
spec:
type: {{ .Values.audiencias.service.type }}
ports:
- port: {{ .Values.audiencias.service.port }}
targetPort: 8000
protocol: TCP
name: "8000"
selector:
{{- include "edemocracia.selectorLabels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
{{- end }}

131
charts/edemocracia/v0.4.0/templates/audienciasworker-deployment.yaml

@ -0,0 +1,131 @@
{{- if eq .Values.audiencias.enabled "True" }}
{{- $edemoUrl := (index .Values.ingress.hosts 0) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "edemocracia.fullname" . }}-audienciasworker
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasworker
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasworker
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "edemocracia.selectorLabels" . | nindent 8 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasworker
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ include "edemocracia.fullname" . }}-audienciasworker
image: "{{ .Values.audiencias.image.repository }}:{{ .Values.audiencias.image.tag }}"
imagePullPolicy: {{ .Values.audiencias.image.pullPolicy }}
args:
- ./start-worker.sh
env:
- name: ADMIN_EMAIL
value: {{ .Values.edemocracia.admin.email | quote }}
- name: ADMIN_PASSWORD
value: {{ .Values.edemocracia.admin.password | quote }}
- name: ADMIN_USERNAME
value: admin
- name: ALLOWED_HOSTS
value: audienciasweb, audienciasworker, localhost, 127.0.0.1, "{{ $edemoUrl }}"
- name: COMPRESS_OFFLINE
value: "True"
- name: DATABASE_ENGINE
value: postgresql_psycopg2
- name: DATABASE_HOST
value: {{ (include "postgresql.fullname" .) }}
- name: DATABASE_NAME
value: audiencias
- name: DATABASE_PASSWORD
value: {{ .Values.postgresql.postgresqlPassword | quote }}
- name: DATABASE_PORT
value: "5432"
- name: DATABASE_USER
value: {{ .Values.postgresql.postgresqlUsername | quote }}
- name: DEBUG
value: "False"
- name: DEFAULT_FROM_EMAIL
value: '"Portal e-Democracia[audiencias]" <{{ .Values.edemocracia.admin.email }}>'
- name: DJANGO_SECRET_KEY
value: {{ .Values.edemocracia.apikey | quote }}
- name: EMAIL_HOST
value: {{ .Values.smtp.host | quote }}
- name: EMAIL_HOST_PASSWORD
value: {{ .Values.smtp.password | quote }}
- name: EMAIL_HOST_USER
value: {{ .Values.smtp.username | quote }}
- name: EMAIL_PORT
value: {{ .Values.smtp.port | quote }}
- name: EMAIL_USE_TLS
value: {{ .Values.smtp.tls | quote }}
- name: ENABLE_REMOTE_USER
value: "True"
- name: FORCE_SCRIPT_NAME
value: /audiencias
- name: GOOGLE_ANALYTICS_ID
value: {{ .Values.edemocracia.googleAnalyticsId }}
- name: LOGIN_REDIRECT_URL
value: /
- name: LOGIN_URL
value: /
- name: LOGOUT_REDIRECT_URL
value: /
- name: NOTIFICATION_EMAIL_LIST
value: "{{ .Values.edemocracia.admin.email }},{{ .Values.audiencias.notifEmailList }}"
- name: OLARK_ID
value: {{ .Values.edemocracia.olarkId | quote }}
- name: RECAPTCHA_PRIVATE_KEY
value: {{ .Values.edemocracia.recaptcha.privateKey | quote }}
- name: RECAPTCHA_SITE_KEY
value: {{ .Values.edemocracia.recaptcha.siteKey | quote }}
- name: REDIS_SERVER
value: {{ (include "redis.fullname" .) }}-master
- name: SESSION_COOKIE_NAME
value: audiencias_session
- name: SITE_DOMAIN
value: "{{ $edemoUrl }}"
- name: SITE_NAME
value: {{ .Values.edemocracia.siteName | quote }}
- name: STATIC_URL
value: /audiencias/static/
- name: URL_PREFIX
value: audiencias
- name: WEBSERVICE_URL
value: {{ .Values.audiencias.webservice.url | quote }}
- name: WORDS_BLACK_LIST
value: {{ .Values.audiencias.wordsBlacklist | quote }}
resources:
{{- toYaml .Values.audiencias.resources | nindent 12 }}
volumeMounts:
- mountPath: /var/labhacker/audiencias/public/
name: {{ include "edemocracia.fullname" . }}-audiencias
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: {{ include "edemocracia.fullname" . }}-audiencias
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-audiencias
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/discourse-assets-pvc.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.discourse.enabled "True" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-assets
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/discourse-cache-pvc.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.discourse.enabled "True" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-cache
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

132
charts/edemocracia/v0.4.0/templates/discourse-deployment.yaml

@ -0,0 +1,132 @@
{{- if eq .Values.discourse.enabled "True" }}
{{- $edemoUrl := (index .Values.ingress.hosts 0) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "edemocracia.selectorLabels" . | nindent 8 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
- image: "{{ .Values.discourse.image.repository }}:{{ .Values.discourse.image.tag }}"
name: {{ include "edemocracia.fullname" . }}-discourse-cpimgs
command:
- "cp"
- "-au"
- "/var/www/discourse/public/images/."
- "/publicimgs/"
volumeMounts:
- mountPath: /publicimgs/
name: {{ include "edemocracia.fullname" . }}-discourse-img
containers:
- args:
- ./start-web.sh
env:
- name: ADMIN_EMAIL
value: {{ .Values.edemocracia.admin.email | quote }}
- name: ADMIN_PASSWORD
value: {{ .Values.edemocracia.admin.password | quote }}
- name: ADMIN_USERNAME
value: admin
- name: DISCOURSE_CONTACT_EMAIL
value: {{ .Values.edemocracia.admin.email | quote }}
- name: DISCOURSE_CONTACT_URL
value: {{ $edemoUrl }}
- name: DISCOURSE_DB_HOST
value: {{ (include "postgresql.fullname" .) }}
- name: DISCOURSE_DB_NAME
value: discourse
- name: DISCOURSE_DB_PASSWORD
value: {{ .Values.postgresql.postgresqlPassword | quote }}
- name: DISCOURSE_DB_PORT
value: "5432"
- name: DISCOURSE_DB_USERNAME
value: {{ .Values.postgresql.postgresqlUsername | quote}}
- name: DISCOURSE_DEVELOPER_EMAILS
- name: DISCOURSE_FORCE_HOSTNAME
value: {{ $edemoUrl }}\/expressao
- name: DISCOURSE_HOSTNAME
value: {{ $edemoUrl }}\/expressao
- name: DISCOURSE_NOTIFICATION_EMAIL
value: {{ .Values.edemocracia.admin.email }}
- name: DISCOURSE_REDIS_HOST
value: {{ (include "redis.fullname" .) }}-master
- name: DISCOURSE_REDIS_PORT
value: "6379"
- name: DISCOURSE_RELATIVE_URL_ROOT
value: /expressao
- name: DISCOURSE_SMTP_ADDRESS
value: {{ .Values.smtp.host | quote }}
- name: DISCOURSE_SMTP_PASSWORD
value: {{ .Values.smtp.password | quote }}
- name: DISCOURSE_SMTP_PORT
value: {{ .Values.smtp.port | quote }}
- name: DISCOURSE_SMTP_USER_NAME
value: {{ .Values.smtp.username | quote }}
- name: DISCOURSE_SSO_SECRET
value: {{ .Values.discourse.sso.secret | quote }}
- name: DISCOURSE_SSO_URL
value: "https://{{ $edemoUrl }}"
- name: RAILS_ENV
value: production
image: {{.Values.discourse.image.repository}}:{{ .Values.discourse.image.tag }}
imagePullPolicy: {{ .Values.discourse.image.pullPolicy }}
name: {{ include "edemocracia.fullname" . }}-discourse
ports:
- containerPort: 8080
resources:
{{- toYaml .Values.discourse.resources | nindent 12 }}
volumeMounts:
- mountPath: /var/www/discourse/public/assets/
name: {{ include "edemocracia.fullname" . }}-discourse-assets
- mountPath: /var/www/discourse/public/javascripts/
name: {{ include "edemocracia.fullname" . }}-discourse-js
- mountPath: /var/www/discourse/public/images/
name: {{ include "edemocracia.fullname" . }}-discourse-img
- mountPath: /var/www/discourse/tmp/stylesheet-cache/
name: {{ include "edemocracia.fullname" . }}-discourse-cache
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: {{ include "edemocracia.fullname" . }}-discourse-assets
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-assets
- name: {{ include "edemocracia.fullname" . }}-discourse-js
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-js
- name: {{ include "edemocracia.fullname" . }}-discourse-img
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-img
- name: {{ include "edemocracia.fullname" . }}-discourse-cache
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-cache
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/discourse-img-pvc.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.discourse.enabled "True" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-img
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/discourse-js-pvc.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.discourse.enabled "True" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-js
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/discourse-service.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.discourse.enabled "True" }}
apiVersion: v1
kind: Service
metadata:
name: discourse
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse
spec:
type: {{ .Values.discourse.service.type }}
ports:
- port: {{ .Values.discourse.service.port }}
targetPort: 8080
protocol: TCP
name: "8080"
selector:
{{- include "edemocracia.selectorLabels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse
{{- end }}

151
charts/edemocracia/v0.4.0/templates/edemocracia-deployment.yaml

@ -0,0 +1,151 @@
{{- $edemoUrl := (index .Values.ingress.hosts 0) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "edemocracia.fullname" . }}-edemocracia
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-edemocracia
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-edemocracia
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "edemocracia.selectorLabels" . | nindent 8 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-edemocracia
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
- image: "{{ .Values.edemocracia.image.repository }}:{{ .Values.edemocracia.image.tag }}"
name: {{ include "edemocracia.fullname" . }}-edemocracia-cpmedia
command:
- "cp"
- "-au"
- "/var/labhacker/edemocracia/src/public/media/"
- "/srcpublic/"
volumeMounts:
- mountPath: /srcpublic
name: {{ include "edemocracia.fullname" . }}-edemocracia
containers:
- name: {{ include "edemocracia.fullname" . }}-edemocracia
image: "{{ .Values.edemocracia.image.repository }}:{{ .Values.edemocracia.image.tag }}"
imagePullPolicy: {{ .Values.edemocracia.image.pullPolicy }}
args:
- ./runserver-production
env:
- name: ADMIN_EMAIL
value: {{ .Values.edemocracia.admin.email | quote }}
- name: ADMIN_PASSWORD
value: {{ .Values.edemocracia.admin.password | quote }}
- name: ADMIN_USERNAME
value: admin
- name: ALLOWED_HOSTS
value: "{{ $edemoUrl }}"
- name: AUDIENCIAS_API_KEY
value: {{ .Values.edemocracia.apikey | quote }}
- name: AUDIENCIAS_ENABLED
value: {{ .Values.audiencias.enabled | quote }}
- name: AUDIENCIAS_UPSTREAM
value: http://audienciasweb:8000/audiencias
- name: DATABASE_ENGINE
value: postgresql_psycopg2
- name: DATABASE_HOST
value: {{ (include "postgresql.fullname" .) }}
- name: DATABASE_NAME
value: edemocracia
- name: DATABASE_PASSWORD
value: {{ .Values.postgresql.postgresqlPassword | quote }}
- name: DATABASE_PORT
value: "5432"
- name: DATABASE_USER
value: {{ .Values.postgresql.postgresqlUsername | quote }}
- name: DEBUG
value: "{{ .Values.edemocracia.debug }}"
- name: DEFAULT_FROM_EMAIL
value: '"Portal e-Democracia" <{{ .Values.edemocracia.admin.email }}>'
- name: DISCOURSE_ENABLED
value: {{ .Values.discourse.enabled | quote }}
- name: DISCOURSE_SSO_SECRET
value: {{ .Values.discourse.sso.secret | quote }}
# Workaround for a bug in runserver-production script, which does not check for DISCOURSE_ENABLED variable
- name: DISCOURSE_UPSTREAM
{{- if eq .Values.discourse.enabled "True" }}
value: http://discourse:8080/expressao
{{- else }}
value: "--version"
{{- end }}
- name: EMAIL_BACKEND
value: django.core.mail.backends.smtp.EmailBackend
- name: EMAIL_HOST
value: {{ .Values.smtp.host | quote }}
- name: EMAIL_HOST_PASSWORD
value: {{ .Values.smtp.password | quote }}
- name: EMAIL_HOST_USER
value: {{ .Values.smtp.username | quote }}
- name: EMAIL_PORT
value: {{ .Values.smtp.port | quote }}
- name: EMAIL_USE_TLS
value: {{ .Values.smtp.tls | quote }}
- name: GOOGLE_ANALYTICS_ID
value: {{ .Values.edemocracia.googleAnalyticsId | quote }}
- name: OLARK_ID
value: {{ .Values.edemocracia.olarkId | quote }}
- name: RECAPTCHA_PRIVATE_KEY
value: {{ .Values.edemocracia.recaptcha.privateKey | quote }}
- name: RECAPTCHA_SITE_KEY
value: {{ .Values.edemocracia.recaptcha.siteKey | quote }}
- name: SECRET_KEY
value: {{ .Values.edemocracia.apikey | quote }}
- name: SITE_NAME
value: {{ .Values.edemocracia.siteName | quote }}
- name: SITE_URL
value: "https://{{ $edemoUrl }}"
- name: SOCIAL_AUTH_FACEBOOK_KEY
value: {{ .Values.edemocracia.socialAuth.facebook.key | quote }}
- name: SOCIAL_AUTH_FACEBOOK_SECRET
value: {{ .Values.edemocracia.socialAuth.facebook.secret | quote }}
- name: SOCIAL_AUTH_GOOGLE_OAUTH2_KEY
value: {{ .Values.edemocracia.socialAuth.google.key | quote }}
- name: SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
value: {{ .Values.edemocracia.socialAuth.google.secret | quote }}
- name: SOCIAL_AUTH_REDIRECT_IS_HTTPS
value: "True"
- name: WIKILEGIS_API_KEY
value: {{ .Values.edemocracia.apikey | quote }}
- name: WIKILEGIS_API_URL
value: /api/v1/
- name: WIKILEGIS_ENABLED
value: {{ .Values.wikilegis.enabled | quote }}
- name: WIKILEGIS_UPSTREAM
value: http://wikilegis:8000
resources:
{{- toYaml .Values.edemocracia.resources | nindent 12 }}
volumeMounts:
- mountPath: /var/labhacker/edemocracia/src/public/
name: {{ include "edemocracia.fullname" . }}-edemocracia
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: {{ include "edemocracia.fullname" . }}-edemocracia
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-edemocracia
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

17
charts/edemocracia/v0.4.0/templates/edemocracia-pvc.yaml

@ -0,0 +1,17 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-edemocracia
spec:
accessModes:
- {{ .Values.edemocracia.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.edemocracia.persistence.size }}
{{- if .Values.edemocracia.persistence.storageClass }}
{{- if (eq "-" .Values.edemocracia.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.edemocracia.persistence.storageClass }}"
{{- end }}
{{- end }}

17
charts/edemocracia/v0.4.0/templates/edemocracia-service.yaml

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: edemocracia
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-edemocracia
spec:
type: {{ .Values.edemocracia.service.type }}
ports:
- port: {{ .Values.edemocracia.service.port }}
targetPort: 8000
protocol: TCP
name: "8000"
selector:
{{- include "edemocracia.selectorLabels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-edemocracia

40
charts/edemocracia/v0.4.0/templates/ingress.yaml

@ -0,0 +1,40 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "edemocracia.fullname" . -}}
{{- $svcPort := .Values.nginx.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . | quote }}
http:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: nginx
servicePort: http
{{- end }}
{{- end }}

111
charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml

@ -0,0 +1,111 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "edemocracia.fullname" . }}-nginx
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-nginx
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-nginx
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "edemocracia.selectorLabels" . | nindent 8 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-nginx
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-nginx
image: "{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }}"
imagePullPolicy: {{ .Values.nginx.image.pullPolicy }}
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: http
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: http
timeoutSeconds: 1
resources:
{{- toYaml .Values.nginx.resources | nindent 12 }}
volumeMounts:
- mountPath: /var/labhacker/edemocracia/src/public/
name: {{ include "edemocracia.fullname" . }}-edemocracia
{{- if eq .Values.wikilegis.enabled "True" }}
- mountPath: /var/labhacker/wikilegis/wikilegis/public/
name: {{ include "edemocracia.fullname" . }}-wikilegis
{{- end }}
{{- if eq .Values.audiencias.enabled "True" }}
- mountPath: /var/labhacker/audiencias/public/
name: {{ include "edemocracia.fullname" . }}-audiencias
{{- end }}
{{- if eq .Values.discourse.enabled "True" }}
- mountPath: /var/www/discourse/public/assets/
name: {{ include "edemocracia.fullname" . }}-discourse-assets
- mountPath: /var/www/discourse/public/javascripts/
name: {{ include "edemocracia.fullname" . }}-discourse-js
- mountPath: /var/www/discourse/public/images/
name: {{ include "edemocracia.fullname" . }}-discourse-img
- mountPath: /var/www/discourse/tmp/stylesheet-cache/
name: {{ include "edemocracia.fullname" . }}-discourse-cache
{{- end }}
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: {{ include "edemocracia.fullname" . }}-edemocracia
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-edemocracia
{{- if eq .Values.wikilegis.enabled "True" }}
- name: {{ include "edemocracia.fullname" . }}-wikilegis
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-wikilegis
{{- end }}
{{- if eq .Values.audiencias.enabled "True" }}
- name: {{ include "edemocracia.fullname" . }}-audiencias
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-audiencias
{{- end }}
{{- if eq .Values.discourse.enabled "True" }}
- name: {{ include "edemocracia.fullname" . }}-discourse-assets
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-assets
- name: {{ include "edemocracia.fullname" . }}-discourse-js
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-js
- name: {{ include "edemocracia.fullname" . }}-discourse-img
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-img
- name: {{ include "edemocracia.fullname" . }}-discourse-cache
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-cache
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

17
charts/edemocracia/v0.4.0/templates/nginx-service.yaml

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-nginx
spec:
type: {{ .Values.nginx.service.type }}
ports:
- port: {{ .Values.nginx.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "edemocracia.selectorLabels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-nginx

128
charts/edemocracia/v0.4.0/templates/wikilegis-deployment.yaml

@ -0,0 +1,128 @@
{{- if eq .Values.wikilegis.enabled "True" }}
{{- $edemoUrl := (index .Values.ingress.hosts 0) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "edemocracia.fullname" . }}-wikilegis
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-wikilegis
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-wikilegis
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "edemocracia.selectorLabels" . | nindent 8 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-wikilegis
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
- image: "{{ .Values.wikilegis.image.repository }}:{{ .Values.wikilegis.image.tag }}"
name: {{ include "edemocracia.fullname" . }}-wikilegis-cpmedia
command:
- "cp"
- "-au"
- "/var/labhacker/wikilegis/wikilegis/public/media/"
- "/wlpublic/"
volumeMounts:
- mountPath: /wlpublic
name: {{ include "edemocracia.fullname" . }}-wikilegis
containers:
- name: {{ include "edemocracia.fullname" . }}-wikilegis
image: "{{ .Values.wikilegis.image.repository }}:{{ .Values.wikilegis.image.tag }}"
imagePullPolicy: {{ .Values.wikilegis.image.pullPolicy }}
args:
- ./start.sh
env:
- name: ADMIN_EMAIL
value: {{ .Values.edemocracia.admin.email | quote }}
- name: ADMIN_PASSWORD
value: {{ .Values.edemocracia.admin.password | quote }}
- name: ALLOWED_HOSTS
value: "{{ $edemoUrl }},wikilegisweb,wikilegis,localhost,127.0.0.1"
- name: API_KEY
value: {{ .Values.edemocracia.apikey | quote }}
- name: AUTH_USER_MODEL
value: accounts.User
- name: DATABASE_ENGINE
value: postgresql_psycopg2
- name: DATABASE_HOST
value: {{ (include "postgresql.fullname" .) }}
- name: DATABASE_NAME
value: wikilegis
- name: DATABASE_PASSWORD
value: {{ .Values.postgresql.postgresqlPassword | quote }}
- name: DATABASE_PORT
value: "5432"
- name: DATABASE_USER
value: {{ .Values.postgresql.postgresqlUsername | quote }}
- name: DEBUG
value: "True"
- name: DEFAULT_FROM_EMAIL
value: '"Portal e-Democracia[Wikilegis]" <{{ .Values.edemocracia.admin.email }}>'
- name: EMAIL_HOST
value: {{ .Values.smtp.host | quote }}
- name: EMAIL_HOST_PASSWORD
value: {{ .Values.smtp.password | quote }}
- name: EMAIL_HOST_USER
value: {{ .Values.smtp.username | quote }}
- name: EMAIL_PORT
value: {{ .Values.smtp.port | quote }}
- name: EMAIL_USE_TLS
value: {{ .Values.smtp.tls | quote }}
- name: ENABLE_REMOTE_USER
value: "True"
- name: FORCE_SCRIPT_NAME
value: /wikilegis
- name: LANGUAGE_CODE
value: pt-br
- name: LOGIN_REDIRECT_URL
value: /
- name: LOGIN_URL
value: /
- name: MEDIA_URL
value: /wikilegis/media/
- name: SECRET_KEY
value: {{ .Values.edemocracia.apikey | quote }}
- name: SESSION_COOKIE_NAME
value: wikilegis_session
- name: SITE_DOMAIN
value: {{ $edemoUrl }}
- name: SITE_NAME
value: {{ .Values.edemocracia.sitename | quote }}
- name: STATIC_URL
value: /wikilegis/static/
- name: TIME_ZONE
value: {{ .Values.edemocracia.timeZone | quote }}
resources:
{{- toYaml .Values.wikilegis.resources | nindent 12 }}
volumeMounts:
- mountPath: /var/labhacker/wikilegis/wikilegis/public/
name: {{ include "edemocracia.fullname" . }}-wikilegis
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: {{ include "edemocracia.fullname" . }}-wikilegis
persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-wikilegis
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/wikilegis-pvc.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.wikilegis.enabled "True" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-wikilegis
spec:
accessModes:
- {{ .Values.wikilegis.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.wikilegis.persistence.size }}
{{- if .Values.wikilegis.persistence.storageClass }}
{{- if (eq "-" .Values.wikilegis.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.wikilegis.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

19
charts/edemocracia/v0.4.0/templates/wikilegis-service.yaml

@ -0,0 +1,19 @@
{{- if eq .Values.wikilegis.enabled "True" }}
apiVersion: v1
kind: Service
metadata:
name: wikilegis
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-wikilegis
spec:
type: {{ .Values.wikilegis.service.type }}
ports:
- port: {{ .Values.wikilegis.service.port }}
targetPort: 8000
protocol: TCP
name: "8000"
selector:
{{- include "edemocracia.selectorLabels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-wikilegis
{{- end }}

196
charts/edemocracia/v0.4.0/values.yaml

@ -0,0 +1,196 @@
# Default values for edemocracia.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
nginx:
image:
repository: labhackercd/nginx-edemocracia
tag: 1.0.0
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 80
resources:
limits:
cpu: 300m
memory: 150Mi
requests:
cpu: 50m
memory: 10Mi
discourse:
enabled: "True"
image:
repository: labhackercd/discourse-docker
tag: 2.0.20180703
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 8080
sso:
secret: "uma_chave_sso_secreta_mesmo"
persistence:
#storageClass: ""
accessMode: ReadWriteOnce
size: 500Mi
resources:
limits:
cpu: 800m
memory: 1200Mi
requests:
cpu: 100m
memory: 650Mi
wikilegis:
enabled: "True"
image:
repository: labhackercd/wikilegis
tag: 2.3.0
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 8000
persistence:
#storageClass: ""
accessMode: ReadWriteOnce
size: 500Mi
resources:
limits:
cpu: 800m
memory: 350Mi
requests:
cpu: 100m
memory: 180Mi
edemocracia:
admin:
email: seitadmins@interlegis.leg.br
password: p@ssw0rd
apikey: "uma_chave_de_api_secreta_mesmo"
debug: "False"
googleAnalyticsId: ""
olarkId: ""
recaptcha:
siteKey: "altereme"
privateKey: "altereme"
socialAuth:
facebook:
key: ""
secret: ""
google:
key: ""
secret: ""
siteName: "Camara Municipal"
timeZone: "America/Sao_Paulo"
image:
repository: labhackercd/edemocracia
tag: 1.3.3
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 8000
apikey: "uma_chave_de_api_secreta_mesmo"
persistence:
#storageClass: ""
accessMode: ReadWriteOnce
size: 500Mi
resources:
limits:
cpu: 500m
memory: 1350Mi
requests:
cpu: 100m
memory: 800Mi
audiencias:
enabled: "True"
image:
repository: labhackercd/audiencias-publicas
tag: 3.3.1
pullPolicy: IfNotPresent
persistence:
#storageClass: ""
accessMode: ReadWriteOnce
size: 500Mi
notifEmailList: ""
webservice:
url: ""
wordsBlacklist: "merda,cu,cuzao,cuzona,cusao,cusona,bunda,fodido,fodida,foda,foder,fodedor,fudido,fudida,fuder,chupa,chupada,chupador,chupadora,boquete,boqueteira,boquetera,boketeira,boketera,xupa,xupada,xupador,xupadora,pauduro,pauzudo,xoxota,chochota,buceta,boceta,busseta,bosseta,cacete,cassete,caceta,kacete,kassete,caralho,karalho,caraleo,pinto,pica,rola,roludo,gozado,gozada,goso,gosa,gosado,gosado,puta,puto,putinho,putinha,putona,putana,putaria,grelo,grelinho,filhodaputa,filhosdaputa,puta,fdps,siririca,punheta,trepar,trepada,trepadeira,caralho,caralhu,karalho,karalhu,tomarnocu,tomanocu,vadia,bosta,quenga,rabo,bolsa,cuzinho,piroca,pqp,puta que pariu,porra,carai,cú,viado,fdp,vtnc,corno,bicha,bixa,viado,viadinho,pederasta,filho da puta,bundao,bundão,filho de uma egua,filho de uma égua,achacador,achacadora,achacadores,achacar,babaca,bucetas,cagar,cagaram,cambada,caráleo,corja,cornão,covarde,covardes,cretino,cus,cús,cusão,cuzão,cuzinho,cuzona,danar,desgraça,drosoba,enrabar,escória,escroto,escrotas,escrotos,fodão,fodona,fudendo,fuder,idiota,imundo,imundos,ku,kú,lascar,merdas,patifaria,pilantra,pilantragem,pilantras,poha,porcaria,putas,putos,sacanagem,safadeza,safado,safados,salafrário,salafrários,vagabundagem,vagabundo,vagabundos,veadinho,veadinhos"
service:
type: ClusterIP
port: 8000
resources:
limits:
cpu: 500m
memory: 160Mi
requests:
cpu: 50m
memory: 80Mi
smtp:
host: "127.0.0.1"
username: ""
password: ""
port: "25"
tls: "False"
# PostgreSQL definitions
postgresql:
image:
tag: 9.6.17
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 5432
persistence:
enabled: true
size: 10Gi
postgresqlPassword: DbP@ssw0rd
postgresqlUsername: postgres
postgresqlDatabase: root
resources:
requests:
cpu: 50m
memory: 35Mi
# Redis definitions
redis:
image:
tag: 5.0.8
pullPolicy: IfNotPresent
cluster:
enabled: false
usePassword: false
resources:
requests:
cpu: 50m
memory: 25Mi
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
ingress:
enabled: true
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
path: /
hosts:
- chart-example.local
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
nodeSelector: {}
tolerations: []
affinity: {}
Loading…
Cancel
Save