cleaning up
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
af486a3613
commit
fb333ed095
9 changed files with 0 additions and 272 deletions
|
@ -1,23 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
newleaf-configuration.py: |-
|
|
||||||
# ==============================
|
|
||||||
# You MUST set these settings.
|
|
||||||
# ==============================
|
|
||||||
|
|
||||||
# A URL that this site can be accessed on. Do not include a trailing slash.
|
|
||||||
website_origin = "http://newleaf.martyn.berlin"
|
|
||||||
|
|
||||||
|
|
||||||
# ==============================
|
|
||||||
# These settings are optional.
|
|
||||||
# ==============================
|
|
||||||
|
|
||||||
# The address of the interface to bind to.
|
|
||||||
#bind_host = "0.0.0.0"
|
|
||||||
|
|
||||||
# The port to bind to.
|
|
||||||
#bind_port = 3000
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: newleaf
|
|
|
@ -1,40 +0,0 @@
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
|
||||||
app: newleaf
|
|
||||||
name: newleaf
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: newleaf
|
|
||||||
strategy: {}
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
|
||||||
app: newleaf
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: abeltramo/newleaf:97b7661
|
|
||||||
imagePullPolicy: Always
|
|
||||||
name: newleaf
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 25m
|
|
||||||
memory: 1738144563
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /workdir/configuration.py
|
|
||||||
name: config
|
|
||||||
subPath: newleaf-configuration.py
|
|
||||||
volumes:
|
|
||||||
- configMap:
|
|
||||||
defaultMode: 420
|
|
||||||
items:
|
|
||||||
- key: newleaf-configuration.py
|
|
||||||
path: newleaf-configuration.py
|
|
||||||
name: newleaf
|
|
||||||
name: config
|
|
||||||
status: {}
|
|
|
@ -1,16 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: newleaf
|
|
||||||
app.kubernetes.io/instance: newleaf
|
|
||||||
name: newleaf
|
|
||||||
annotations:
|
|
||||||
external-dns.alpha.kubernetes.io/hostname: newleaf.martyn.berlin
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 3000
|
|
||||||
selector:
|
|
||||||
app: newleaf
|
|
||||||
type: LoadBalancer
|
|
|
@ -1,110 +0,0 @@
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: nextcloud
|
|
||||||
name: nextcloud
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: nextcloud
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: nextcloud
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: MYSQL_HOST
|
|
||||||
value: nextcloud-mysql-mariadb
|
|
||||||
- name: MYSQL_DATABASE
|
|
||||||
value: nextcloud
|
|
||||||
- name: MYSQL_USER
|
|
||||||
value: nextcloud
|
|
||||||
- name: MYSQL_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: db-creds
|
|
||||||
key: mariadb-password
|
|
||||||
- name: NEXTCLOUD_ADMIN_USER
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: nextcloud-username
|
|
||||||
name: nextcloud
|
|
||||||
- name: NEXTCLOUD_ADMIN_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: nextcloud-password
|
|
||||||
name: nextcloud
|
|
||||||
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
|
||||||
value: nextcloud.martyn.berlin
|
|
||||||
- name: NEXTCLOUD_DATA_DIR
|
|
||||||
value: /var/www/html/data
|
|
||||||
image: nextcloud:27-apache
|
|
||||||
imagePullPolicy: Always
|
|
||||||
livenessProbe:
|
|
||||||
failureThreshold: 3
|
|
||||||
httpGet:
|
|
||||||
httpHeaders:
|
|
||||||
- name: Host
|
|
||||||
value: nextcloud.martyn.berlin
|
|
||||||
path: /status.php
|
|
||||||
port: http
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
successThreshold: 1
|
|
||||||
timeoutSeconds: 5
|
|
||||||
name: nextcloud
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
name: http
|
|
||||||
protocol: TCP
|
|
||||||
readinessProbe:
|
|
||||||
failureThreshold: 3
|
|
||||||
httpGet:
|
|
||||||
httpHeaders:
|
|
||||||
- name: Host
|
|
||||||
value: nextcloud.martyn.berlin
|
|
||||||
path: /status.php
|
|
||||||
port: http
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
successThreshold: 1
|
|
||||||
timeoutSeconds: 5
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/www/
|
|
||||||
name: nextcloud-main
|
|
||||||
subPath: root
|
|
||||||
- mountPath: /var/www/html
|
|
||||||
name: nextcloud-main
|
|
||||||
subPath: html
|
|
||||||
- mountPath: /var/www/html/data
|
|
||||||
name: nextcloud-main
|
|
||||||
subPath: data
|
|
||||||
- mountPath: /var/www/html/config
|
|
||||||
name: nextcloud-main
|
|
||||||
subPath: config
|
|
||||||
- mountPath: /var/www/html/custom_apps
|
|
||||||
name: nextcloud-main
|
|
||||||
subPath: custom_apps
|
|
||||||
- mountPath: /var/www/tmp
|
|
||||||
name: nextcloud-main
|
|
||||||
subPath: tmp
|
|
||||||
- mountPath: /var/www/html/themes
|
|
||||||
name: nextcloud-main
|
|
||||||
subPath: themes
|
|
||||||
dnsPolicy: ClusterFirst
|
|
||||||
restartPolicy: Always
|
|
||||||
schedulerName: default-scheduler
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 33
|
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
|
||||||
terminationGracePeriodSeconds: 30
|
|
||||||
volumes:
|
|
||||||
- name: nextcloud-main
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: nextcloud-nextcloud
|
|
|
@ -1,27 +0,0 @@
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt
|
|
||||||
external-dns.alpha.kubernetes.io/target: armnleg.martyn.berlin
|
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: 200m
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: nextcloud
|
|
||||||
name: nextcloud
|
|
||||||
namespace: nextcloud
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: nextcloud.martyn.berlin
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: nextcloud
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
path: /
|
|
||||||
pathType: Prefix
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- nextcloud.martyn.berlin
|
|
|
@ -1,13 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: nextcloud
|
|
||||||
name: nextcloud-nextcloud
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 50Gi
|
|
||||||
storageClassName: longhorn-fast
|
|
|
@ -1,15 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: nextcloud
|
|
||||||
name: nextcloud
|
|
||||||
namespace: nextcloud
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: http
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: nextcloud
|
|
||||||
type: LoadBalancer
|
|
|
@ -1,14 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: newleaf
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: cloudtube
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
project: apps
|
|
||||||
source:
|
|
||||||
path: apps-kustomized/newleaf
|
|
||||||
repoURL: https://git.martyn.berlin/martyn/infra4talos
|
|
||||||
targetRevision: HEAD
|
|
|
@ -1,14 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: nextcloud
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: nextcloud
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
project: apps
|
|
||||||
source:
|
|
||||||
path: apps-kustomized/nextcloud
|
|
||||||
repoURL: https://git.martyn.berlin/martyn/infra4talos
|
|
||||||
targetRevision: HEAD
|
|
Loading…
Add table
Reference in a new issue