Commit 692c809c authored by Matthias's avatar Matthias
Browse files

add helm charts

parent f70dedaf
Pipeline #25032 passed with stages
in 2 minutes and 59 seconds
# 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/
\ No newline at end of file
apiVersion: v2
name: api-import
description: A helm chart for the import api
type: application
version: 0.0.0
appVersion: 0.0.0
maintainers:
- name: Matthias Edel
email: matthias.edel@unibas.ch
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/import-api"
tag: "latest"
k8sName: import
k8sGroupName: api
k8sEnvironment: prod
k8sReplicas: 1
drupalApiCredentials: drupal-live-api-credentials
sftpConfigs: internal-sftp-config
kafkaConfigs: prod-kafka-bootstrap-servers
importApiConfig: import-api-prod-config
importApiUrl: 'https://{{ .Values.k8sEnvironment}}-import.memobase.k8s.unibas.ch'
drupalApiUrl: 'https://memobase-customer-live.outermedia.net'
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/import-api"
tag: "latest"
k8sName: import
k8sGroupName: api
k8sEnvironment: stage
k8sReplicas: 1
drupalApiCredentials: drupal-api-credentials
sftpConfigs: internal-sftp-config
kafkaConfigs: stage-kafka-bootstrap-servers
importApiConfig: import-api-test-config
importApiUrl: 'https://{{ .Values.k8sEnvironment}}-import.memobase.k8s.unibas.ch'
drupalApiUrl: 'https://mb-wf1.memobase.unibas.ch'
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/import-api"
tag: "latest"
k8sName: import
k8sGroupName: api
k8sEnvironment: test
k8sReplicas: 1
drupalApiCredentials: drupal-api-credentials
sftpConfigs: internal-sftp-config
kafkaConfigs: test-kafka-bootstrap-servers
importApiConfig: import-api-test-config
importApiUrl: 'https://{{ .Values.k8sEnvironment}}-import.memobase.k8s.unibas.ch'
drupalApiUrl: 'https://mb-wf1.memobase.unibas.ch'
#create service account so that this pod can manage the other pods
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-service-account
---
#necessary role so that the service account can access the kubernetes api to list pods
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: {{ .Values.k8sNamespace }}
name: import-api-roles
rules:
- apiGroups: ["", "batch"] # "" indicates the core API group
resources: ["pods", "secrets", "configmaps", "jobs"]
verbs: ["get", "list", "create", "watch", "create", "update", "patch", "delete"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: import-api-roles
namespace: {{ .Values.k8sNamespace }}
subjects:
- kind: ServiceAccount
name: {{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-service-account
namespace: {{ .Values.k8sNamespace }}
roleRef:
kind: Role
name: import-api-roles
apiGroup: rbac.authorization.k8s.io
\ No newline at end of file
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/import-api"
tag: "latest"
k8sName: placeholder
k8sNamespace: memobase
k8sGroupId: api
k8sGroupName: api
k8sEnvironment: placeholder
k8sReplicas: placeholder
k8sRequestsCpu: placeholder
k8sRequestsMemory: placeholder
k8sLimitsCpu: placeholder
k8sLimitsMemory: placeholder
logLevel: placeholder
drupalApiCredentials: placeholder
sftpConfigs: placeholder
kafkaConfigs: placeholder
importApiConfig: placeholder
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment