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