diff --git a/SingletonServices/Kubernetes/KubernetesServiceBase.cs b/SingletonServices/Kubernetes/KubernetesServiceBase.cs index a029e53..1c6158a 100644 --- a/SingletonServices/Kubernetes/KubernetesServiceBase.cs +++ b/SingletonServices/Kubernetes/KubernetesServiceBase.cs @@ -79,6 +79,16 @@ protected Task CreateInstanceAsync(string deploymentName, { Name = "sharedvolume", EmptyDir = new V1EmptyDirVolumeSource() + }, + new() + { + Name = "cookies", + Secret = new V1SecretVolumeSource + { + SecretName = "cookies", + DefaultMode = 432, // octal 0660 to decimal + Optional = true, + } } }, // Downloader container @@ -99,6 +109,13 @@ protected Task CreateInstanceAsync(string deploymentName, { Name = "sharedvolume", MountPath = mountPath, + ReadOnlyProperty = false, + }, + new() + { + Name = "cookies", + MountPath = Path.Combine(mountPath, "cookies"), + ReadOnlyProperty = false, } }, }