Add siyuan
This commit is contained in:
parent
b38621b346
commit
378f784f06
5 changed files with 120 additions and 0 deletions
17
app-of-apps/siyuan.yaml
Normal file
17
app-of-apps/siyuan.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: siyuan
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: siyuan
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: apps-kustomized/siyuan
|
||||
repoURL: http://forgejo.git.svc.cluster.local/martyn/infra4talos.git
|
||||
targetRevision: HEAD
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
52
apps-kustomized/siyuan/deploy.yaml
Normal file
52
apps-kustomized/siyuan/deploy.yaml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: siyuan
|
||||
name: siyuan
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: siyuan
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app: siyuan
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
- --workspace=/data
|
||||
- --accessAuthCode=siyuan
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1001"
|
||||
- name: GUID
|
||||
value: "1002"
|
||||
image: docker.io/b3log/siyuan:v3.3.2
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: siyuan
|
||||
ports:
|
||||
- containerPort: 6806
|
||||
name: http
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
cpu: 25m
|
||||
memory: "920733364"
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: siyuan-data
|
||||
27
apps-kustomized/siyuan/ing.yaml
Normal file
27
apps-kustomized/siyuan/ing.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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/auth-signin: https://homeauth.martyn.berlin/oauth2/start?rd=https://$host$escaped_request_uri
|
||||
nginx.ingress.kubernetes.io/auth-url: https://homeauth.martyn.berlin/oauth2/auth
|
||||
labels:
|
||||
app.kubernetes.io/name: siyuan
|
||||
name: siyuan
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: siyuan.martyn.berlin
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: siyuan
|
||||
port:
|
||||
number: 6806
|
||||
path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- siyuan.martyn.berlin
|
||||
11
apps-kustomized/siyuan/pvc.yaml
Normal file
11
apps-kustomized/siyuan/pvc.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: siyuan-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
storageClassName: longhorn-fast
|
||||
13
apps-kustomized/siyuan/svc.yaml
Normal file
13
apps-kustomized/siyuan/svc.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: siyuan
|
||||
name: siyuan
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 6806
|
||||
selector:
|
||||
app: siyuan
|
||||
type: LoadBalancer
|
||||
Loading…
Add table
Reference in a new issue