diff --git a/charts/cops/Chart.yaml b/charts/cops/Chart.yaml deleted file mode 100644 index 2a3d6a7..0000000 --- a/charts/cops/Chart.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v2 -name: cops -version: 0.0.3 -description: Chart for Calibre OPDS (and HTML) PHP Server -keywords: - - calibre - - OPDS -sources: - - https://github.com/seblucas/cops -maintainers: - - name: alexlebens -appVersion: 1.1.3 diff --git a/charts/cops/README.md b/charts/cops/README.md deleted file mode 100644 index 9f4d5fa..0000000 --- a/charts/cops/README.md +++ /dev/null @@ -1,22 +0,0 @@ -## Introduction - -[Calibre OPDS (and HTML) PHP Server](https://github.com/seblucas/cops) - -COPS's main advantages are : - - - No need for many dependencies. - - No need for a lot of CPU or RAM. - - Not much code. - - Search is available. - - It was fun to code. - -This chart bootstraps a [COPS](https://github.com/seblucas/cops) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - -## Prerequisites - -- Kubernetes -- Helm - -## Parameters - -See the [values files](values.yaml). diff --git a/charts/cops/templates/deployment.yaml b/charts/cops/templates/deployment.yaml deleted file mode 100644 index e7b10b2..0000000 --- a/charts/cops/templates/deployment.yaml +++ /dev/null @@ -1,82 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ .Release.Name }} - namespace: {{ .Release.Namespace | quote }} - labels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: web - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - revisionHistoryLimit: 3 - replicas: {{ .Values.deployment.replicas }} - strategy: - type: {{ .Values.deployment.strategy }} - selector: - matchLabels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - template: - metadata: - labels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - spec: - serviceAccountName: {{ .Release.Name }} - containers: - - name: {{ .Release.Name }} - image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}" - imagePullPolicy: {{ .Values.deployment.image.imagePullPolicy }} - ports: - - name: http - containerPort: {{ .Values.service.http.port }} - protocol: TCP - volumeMounts: - - mountPath: /config - name: cops-config - - mountPath: /books - name: cops-books - resources: - {{- toYaml .Values.deployment.resources | nindent 12 }} - env: - {{- range $k,$v := .Values.deployment.env }} - - name: {{ $k }} - value: {{ $v | quote }} - {{- end }} - {{- with .Values.deployment.envFrom }} - envFrom: - {{- toYaml . | nindent 12 }} - {{- end }} - livenessProbe: - httpGet: - path: / - port: {{ .Values.service.http.port }} - initialDelaySeconds: 0 - failureThreshold: 5 - timeoutSeconds: 1 - periodSeconds: 10 - readinessProbe: - httpGet: - path: / - port: {{ .Values.service.http.port }} - initialDelaySeconds: 0 - failureThreshold: 5 - timeoutSeconds: 1 - periodSeconds: 10 - startupProbe: - httpGet: - path: / - port: {{ .Values.service.http.port }} - initialDelaySeconds: 5 - failureThreshold: 30 - periodSeconds: 10 - timeoutSeconds: 1 - volumes: - - name: cops-config - persistentVolumeClaim: - claimName: cops-config - - name: cops-books - persistentVolumeClaim: - claimName: {{ .Values.persistence.books.claimName }} diff --git a/charts/cops/templates/ingress.yaml b/charts/cops/templates/ingress.yaml deleted file mode 100644 index 8395226..0000000 --- a/charts/cops/templates/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if .Values.ingress.enabled }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: {{ .Release.Name }} - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: web - app.kubernetes.io/part-of: {{ .Release.Name }} - annotations: - {{- toYaml .Values.ingress.annotations | nindent 4 }} -spec: - ingressClassName: {{ .Values.ingress.className }} - tls: - - hosts: - - {{ .Values.ingress.host }} - secretName: {{ .Release.Name }}-secret-tls - rules: - - host: {{ .Values.ingress.host }} - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: {{ .Release.Name }} - port: - name: http -{{- end }} diff --git a/charts/cops/templates/persistant-volume-claim.yaml b/charts/cops/templates/persistant-volume-claim.yaml deleted file mode 100644 index 14dd2bd..0000000 --- a/charts/cops/templates/persistant-volume-claim.yaml +++ /dev/null @@ -1,19 +0,0 @@ -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: cops-config - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: storage - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: {{ .Values.persistence.config.storageSize }} - storageClassName: {{ .Values.persistence.config.storageClassName }} - volumeMode: {{ .Values.persistence.config.volumeMode }} diff --git a/charts/cops/templates/pod.yaml b/charts/cops/templates/pod.yaml deleted file mode 100644 index b9f52eb..0000000 --- a/charts/cops/templates/pod.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-test-connection" - labels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: web - app.kubernetes.io/part-of: {{ .Release.Name }} - annotations: - "helm.sh/hook": test-success -spec: - restartPolicy: Never - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ .Release.Name }}:{{ .Values.service.http.port }}'] - resources: - limits: - cpu: 500m - memory: 1Gi - requests: - cpu: 50m - memory: 256Mi diff --git a/charts/cops/templates/service-account.yaml b/charts/cops/templates/service-account.yaml deleted file mode 100644 index a437092..0000000 --- a/charts/cops/templates/service-account.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ .Release.Name }} - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: web - app.kubernetes.io/part-of: {{ .Release.Name }} diff --git a/charts/cops/templates/service.yaml b/charts/cops/templates/service.yaml deleted file mode 100644 index aa34498..0000000 --- a/charts/cops/templates/service.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Release.Name }} - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: web - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - type: ClusterIP - externalTrafficPolicy: - ports: - - port: {{ .Values.service.http.port }} - targetPort: http - protocol: TCP - name: http - selector: - app.kubernetes.io/name: {{ .Release.Name }} - app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/charts/cops/values.yaml b/charts/cops/values.yaml deleted file mode 100644 index 0a3dab8..0000000 --- a/charts/cops/values.yaml +++ /dev/null @@ -1,36 +0,0 @@ -deployment: - replicas: 1 - strategy: Recreate - image: - repository: linuxserver/cops - tag: 2.3.1-ls185 - imagePullPolicy: IfNotPresent - env: - PGID: "1000" - PUID: "1000" - TZ: UTC - envFrom: - resources: - limits: - cpu: 500m - memory: 1Gi - requests: - cpu: 50m - memory: 256Mi -serviceAccount: - create: true -service: - http: - port: 80 -ingress: - enabled: false - annotations: - className: - host: -persistence: - config: - storageClassName: default - storageSize: 5Gi - volumeMode: Filesystem - books: - claimName: