Commit 61d5e0a1 authored by Giuseppe Tudisco's avatar Giuseppe Tudisco
Browse files

Upload Helm Chart

parent 90fe449f
Loading
Loading
Loading
Loading

etc/helm/.helmignore

0 → 100644
+23 −0
Original line number Diff line number Diff line
# 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/

etc/helm/Chart.yaml

0 → 100644
+28 −0
Original line number Diff line number Diff line
apiVersion: v2
name: xrootd
description: "A Helm chart for the deployment of XRootD"

maintainers:
  - name: Giuseppe Tudisco
    email: giuseppe.tudisco@inaf.it

# 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.1

# 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: "5.9.0"
+15 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ .Release.Name }}-config
  namespace: {{ .Release.Namespace }}
data:
  Authfile: |
    {{ .Values.config.Authfile | nindent 4 }}

  scitokens.cfg: |
    {{ index .Values.config "scitokens.cfg" | nindent 4 }}

  xrootd-http.cfg: |
    {{ index .Values.config "xrootd-http.cfg" | nindent 4 }}
+38 −0
Original line number Diff line number Diff line
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Release.Name }}-deploy
  namespace: {{ .Release.Namespace }}
  labels:
    app: {{ .Release.Name }}
spec:
  replicas: {{ default 1 .Values.replicaCount }}
  selector:
    matchLabels:
      app: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app: {{ .Release.Name }}
    spec:
      containers:
        - name: {{ .Release.Name }}
          image: {{ .Values.deployment.xrootd.image }}
          imagePullPolicy: {{ .Values.deployment.xrootd.imagePullPolicy }}
          ports:
            - name: xrd-http
              containerPort: 8080
              protocol: TCP
          volumeMounts:
            - name: data
              mountPath: "/data"
            - name: config
              mountPath: /etc/xrootd/
              readOnly: true
      volumes:
        - name: data
          persistentVolumeClaim:
            claimName: {{ .Values.deployment.xrootd.persistentVolumeClaimName }}
        - name: config
          configMap:
            name: {{ .Release.Name }}-config
+28 −0
Original line number Diff line number Diff line
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: {{ .Release.Name }}-ingress
  namespace: {{ .Release.Namespace }}
  annotations:
    {{- with .Values.ingress.annotations }}
    {{- toYaml . | nindent 4 }}
    {{- end }}
spec:
  ingressClassName: {{ .Values.ingress.className }}
  rules:
    - host: {{ .Values.ingress.hostname }}
      http:
        paths:
          - pathType: Prefix
            backend:
              service:
                name: {{ .Release.Name}}-svc
                port:
                  name: http
            path: /
  tls:
  {{- with .Values.ingress.tls }}
  {{- toYaml . | nindent 4 }}
  {{- end }}
{{- end }}
Loading