Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
692c809c
Commit
692c809c
authored
Apr 19, 2021
by
Matthias
Browse files
add helm charts
parent
f70dedaf
Pipeline
#25032
passed with stages
in 2 minutes and 59 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
import_api_app/helm-charts/.helmignore
0 → 100644
View file @
692c809c
# 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
import_api_app/helm-charts/Chart.yaml
0 → 100644
View file @
692c809c
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
import_api_app/helm-charts/helm-values/values-prod.yaml
0 → 100644
View file @
692c809c
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'
import_api_app/helm-charts/helm-values/values-stage.yaml
0 → 100644
View file @
692c809c
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'
import_api_app/helm-charts/helm-values/values-test.yaml
0 → 100644
View file @
692c809c
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'
import_api_app/helm-charts/templates/serviceaccount-role-rolebinding.yml
0 → 100644
View file @
692c809c
#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
import_api_app/helm-charts/values.yaml
0 → 100644
View file @
692c809c
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment