diff --git a/charts/priobike-sg-selector-nginx/.helmignore b/charts/priobike-sg-selector-nginx/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/priobike-sg-selector-nginx/.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/ diff --git a/charts/priobike-sg-selector-nginx/Chart.yaml b/charts/priobike-sg-selector-nginx/Chart.yaml new file mode 100644 index 0000000..f86c13d --- /dev/null +++ b/charts/priobike-sg-selector-nginx/Chart.yaml @@ -0,0 +1,30 @@ +apiVersion: v2 +name: priobike-sg-selector-nginx +description: A Helm chart for Kubernetes + +# 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. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.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. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "v1.2" + +maintainers: + - name: Paul + email: paul_maximilian.pickhardt@tu-dresden.de + - name: Daniel + email: daniel.jeschor@tu-dresden.de diff --git a/charts/priobike-sg-selector-nginx/ci/example-values.yaml b/charts/priobike-sg-selector-nginx/ci/example-values.yaml new file mode 100644 index 0000000..da61c51 --- /dev/null +++ b/charts/priobike-sg-selector-nginx/ci/example-values.yaml @@ -0,0 +1 @@ +priobikeImageRegistry: bikenow.vkw.tu-dresden.de/priobike diff --git a/charts/priobike-sg-selector-nginx/templates/deployment.yaml b/charts/priobike-sg-selector-nginx/templates/deployment.yaml new file mode 100644 index 0000000..d80cc4b --- /dev/null +++ b/charts/priobike-sg-selector-nginx/templates/deployment.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Values.deploymentName }} +spec: + replicas: {{ .Values.replicas }} + selector: + matchLabels: + app: {{ .Values.labels.app }} + template: + metadata: + labels: + app: {{ .Values.labels.app }} + spec: + imagePullSecrets: + - name: regcred + + containers: + - name: {{ .Values.containerName }} + image: |- + {{ (.Values.global).priobikeImageRegistry | default .Values.priobikeImageRegistry | required "A valid .Values.priobikeImageRegistry or .Values.global.priobikeImageRegistry entry is required!" -}} + /{{ .Values.imageName }}:v1.2 + envFrom: + - configMapRef: + name: {{ .Values.configMapName }} diff --git a/charts/priobike-sg-selector-nginx/templates/service.yaml b/charts/priobike-sg-selector-nginx/templates/service.yaml new file mode 100644 index 0000000..1c0d359 --- /dev/null +++ b/charts/priobike-sg-selector-nginx/templates/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Values.serviceName }} +spec: + selector: + app: {{ .Values.labels.app }} + ports: + - protocol: TCP + port: 80 + targetPort: 80 + type: ClusterIP \ No newline at end of file diff --git a/charts/priobike-sg-selector-nginx/values.yaml b/charts/priobike-sg-selector-nginx/values.yaml new file mode 100644 index 0000000..17f1496 --- /dev/null +++ b/charts/priobike-sg-selector-nginx/values.yaml @@ -0,0 +1,7 @@ +replicas: 1 +imageName: priobike-sg-selector-hamburg-static +deploymentName: priobike-sg-selector-nginx-deployment +containerName: priobike-sg-selector-nginx-container +serviceName: priobike-sg-selector-nginx-service +labels: + app: priobike-sg-selector-nginx-app