Update linkding deployment
This commit is contained in:
@@ -16,7 +16,10 @@ spec:
|
|||||||
app: linking
|
app: linking
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: sissbruecker/linkding:1.31.0
|
- env:
|
||||||
|
- name: LD_CSRF_TRUSTED_ORIGINS
|
||||||
|
value: https://link.danicos.me
|
||||||
|
image: sissbruecker/linkding:1.45.0
|
||||||
name: linkding
|
name: linkding
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9090
|
- containerPort: 9090
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ func Stack() stack.Stack {
|
|||||||
|
|
||||||
func deployment() apps.Deployment {
|
func deployment() apps.Deployment {
|
||||||
storage := kube.NewVolumeFrom(kube.VolumeSourcePVC, "data", pvc.Name)
|
storage := kube.NewVolumeFrom(kube.VolumeSourcePVC, "data", pvc.Name)
|
||||||
|
envMapping := map[string]string{
|
||||||
|
"LD_CSRF_TRUSTED_ORIGINS": "https://link.danicos.me",
|
||||||
|
}
|
||||||
pod_spec := core.PodSpec{
|
pod_spec := core.PodSpec{
|
||||||
SecurityContext: &core.PodSecurityContext{
|
SecurityContext: &core.PodSecurityContext{
|
||||||
RunAsUser: &root.Linkding.SecurityContextID,
|
RunAsUser: &root.Linkding.SecurityContextID,
|
||||||
@@ -44,6 +47,7 @@ func deployment() apps.Deployment {
|
|||||||
Name: root.Linkding.Name,
|
Name: root.Linkding.Name,
|
||||||
Image: root.Linkding.Image,
|
Image: root.Linkding.Image,
|
||||||
SecurityContext: root.ContainerSecurityContext,
|
SecurityContext: root.ContainerSecurityContext,
|
||||||
|
Env: kube.NewEnvVar(envMapping),
|
||||||
Ports: []core.ContainerPort{{
|
Ports: []core.ContainerPort{{
|
||||||
ContainerPort: root.Linkding.Port,
|
ContainerPort: root.Linkding.Port,
|
||||||
}},
|
}},
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ type Service struct {
|
|||||||
|
|
||||||
var Linkding = Service{
|
var Linkding = Service{
|
||||||
Name: "linkding",
|
Name: "linkding",
|
||||||
Image: "sissbruecker/linkding:1.31.0",
|
Image: "sissbruecker/linkding:1.45.0",
|
||||||
Port: 9090,
|
Port: 9090,
|
||||||
SecurityContextID: 33, // www-data user, group and FS ID
|
SecurityContextID: 33, // www-data user, group and FS ID
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user