Remove (temporarily) linkding deployment

This commit is contained in:
Daniel Cosme
2026-04-25 11:48:54 -04:00
parent 66494a9712
commit 3062b79fcb
7 changed files with 17 additions and 88 deletions

View File

@@ -1,4 +1,6 @@
# GitOps
## Homelab
## GitOps
A set of "best practices" where the entire code delivery process is controlled via Git, including infrastructure and application definition as code and automation to complete updates and rollbacks.
The key GitOps Principles:
@@ -39,3 +41,12 @@ To decrypt secrets use:
sops --decrypt <file_path>
```
There must be an environment variable named `SOPS_AGE_KEY_FILE` that contains the path of the AGE key text file.
## Pending
### Storage
Object Storage from NAS
Block Storage from NAS
Distributed Storage from:
- RookFS
- Longhorn

View File

@@ -1,50 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: linking
name: linking
namespace: linkding
spec:
selector:
matchLabels:
app: linking
strategy: {}
template:
metadata:
labels:
app: linking
spec:
containers:
- env:
- name: LD_CSRF_TRUSTED_ORIGINS
value: https://link.danicos.me
- name: LD_SUPERUSER_NAME
valueFrom:
secretKeyRef:
key: supe_user_name
name: linkding
- name: LD_SUPERUSER_PASSWORD
valueFrom:
secretKeyRef:
key: supe_user_password
name: linkding
image: sissbruecker/linkding:1.45.0
name: linkding
ports:
- containerPort: 9090
resources: {}
securityContext:
allowPrivilegeEscalation: false
volumeMounts:
- mountPath: /etc/linkding/data
name: data
securityContext:
fsGroup: 33
runAsGroup: 33
runAsUser: 33
volumes:
- name: data
persistentVolumeClaim:
claimName: linking-pvc
status: {}

View File

@@ -5,6 +5,3 @@ metadata:
namespace: linkding
resources:
- namespace.yaml
- srv.yaml
- pvc.yaml
- deployment.yaml

View File

@@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: linking-pvc
namespace: linkding
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}

View File

@@ -1,17 +0,0 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: linking
name: linking
namespace: linkding
spec:
ports:
- nodePort: 30010
port: 9090
targetPort: 0
selector:
app: linking
type: NodePort
status:
loadBalancer: {}

View File

@@ -1,6 +1,6 @@
# This file should be in: /etc/rancher/k3s/config.yaml
write-kubeconfig-mode: "0644"
disable:
- helm-controller
- helm-controller #
# tls-san:
# - "kube.danicos.dev"

View File

@@ -36,9 +36,9 @@ func Stack() stack.Stack {
meta,
map[string]any{
"namespace": Namespace,
"srv": srv,
"pvc": pvc,
"deployment": deployment(),
// "srv": srv,
// "pvc": pvc,
// "deployment": deployment(),
},
)
return kz.Stack("linkding")