Browse Source

Remove helm and skaffold configs

pull/162/head
jld3103 2 years ago
parent
commit
142bdee3b6
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 1
      helm/nextcloud-neon/.gitignore
  2. 4
      helm/nextcloud-neon/Chart.yaml
  3. 73
      helm/nextcloud-neon/templates/common-proxies.yaml
  4. 91
      helm/nextcloud-neon/templates/push-proxy.yaml
  5. 23
      skaffold.yaml

1
helm/nextcloud-neon/.gitignore vendored

@ -1 +0,0 @@
values.yaml

4
helm/nextcloud-neon/Chart.yaml

@ -1,4 +0,0 @@
apiVersion: "v1"
name: nextcloud-neon
version: 1.0.0
description: nextcloud-neon

73
helm/nextcloud-neon/templates/common-proxies.yaml

@ -1,73 +0,0 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: common-proxies
spec:
selector:
matchLabels:
app: common-proxies
template:
metadata:
labels:
app: common-proxies
spec:
containers:
- name: common-proxies
image: "{{ .Values.common_proxies.image.repository }}:{{ .Values.common_proxies.image.tag }}"
imagePullPolicy: {{ .Values.common_proxies.image.pullPolicy }}
env:
{{ toYaml .Values.common_proxies.environment | indent 12 }}
ports:
- name: http
containerPort: 5000
readinessProbe:
httpGet:
port: http
path: /health
livenessProbe:
httpGet:
port: http
path: /health
---
kind: Service
apiVersion: v1
metadata:
name: common-proxies
spec:
type: {{ .Values.common_proxies.service.type }}
ports:
- port: {{ .Values.common_proxies.service.port }}
targetPort: http
selector:
app: common-proxies
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: common-proxies
{{ if .Values.common_proxies.ingress.annotations }}
annotations:
{{ toYaml .Values.common_proxies.ingress.annotations | indent 4 }}
{{ end }}
spec:
{{ if .Values.common_proxies.ingress.className }}
ingressClassName: {{ .Values.common_proxies.ingress.className }}
{{ end }}
rules:
- host: {{ .Values.common_proxies.ingress.host }}
http:
paths:
- path: {{ .Values.common_proxies.ingress.path }}
pathType: {{ .Values.common_proxies.ingress.pathType }}
backend:
service:
name: common-proxies
port:
number: {{ .Values.common_proxies.service.port }}
{{ if .Values.common_proxies.ingress.tls }}
tls:
{{ toYaml .Values.common_proxies.ingress.tls | indent 4 }}
{{ end }}

91
helm/nextcloud-neon/templates/push-proxy.yaml

@ -1,91 +0,0 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: push-proxy
spec:
selector:
matchLabels:
app: push-proxy
template:
metadata:
labels:
app: push-proxy
spec:
containers:
- name: push-proxy
image: "{{ .Values.imageNextcloudPushProxy }}"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
port: http
path: /health
livenessProbe:
httpGet:
port: http
path: /health
volumeMounts:
- mountPath: /data
name: push-proxy
volumes:
- name: push-proxy
persistentVolumeClaim:
claimName: push-proxy
---
kind: Service
apiVersion: v1
metadata:
name: push-proxy
spec:
type: {{ .Values.push_proxy.service.type }}
ports:
- port: {{ .Values.push_proxy.service.port }}
targetPort: http
selector:
app: push-proxy
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: push-proxy
{{ if .Values.push_proxy.ingress.annotations }}
annotations:
{{ toYaml .Values.push_proxy.ingress.annotations | indent 4 }}
{{ end }}
spec:
{{ if .Values.push_proxy.ingress.className }}
ingressClassName: {{ .Values.push_proxy.ingress.className }}
{{ end }}
rules:
- host: {{ .Values.push_proxy.ingress.host }}
http:
paths:
- path: {{ .Values.push_proxy.ingress.path }}
pathType: {{ .Values.push_proxy.ingress.pathType }}
backend:
service:
name: push-proxy
port:
number: {{ .Values.push_proxy.service.port }}
{{ if .Values.push_proxy.ingress.tls }}
tls:
{{ toYaml .Values.push_proxy.ingress.tls | indent 4 }}
{{ end }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: push-proxy
spec:
resources:
requests:
storage: 1Gi
accessModes:
- ReadWriteOnce

23
skaffold.yaml

@ -1,23 +0,0 @@
kind: Config
apiVersion: skaffold/v2beta27
build:
artifacts:
- image: provokateurin/nextcloud-push-proxy
context: packages/nextcloud_push_proxy
local:
useBuildkit: true
concurrency: 0
push: true
tagPolicy:
sha256: {}
deploy:
helm:
releases:
- name: nextcloud-neon
chartPath: helm/nextcloud-neon
namespace: nextcloud-neon
valuesFiles:
- helm/nextcloud-neon/values.yaml
artifactOverrides:
imageNextcloudPushProxy: provokateurin/nextcloud-push-proxy
statusCheckDeadlineSeconds: 300
Loading…
Cancel
Save