Skip to content

Commit

Permalink
Merge pull request #229 from B-urb/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
B-urb authored Oct 11, 2024
2 parents 3fa6376 + 52aaa11 commit 32ecddb
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions l2/providers/Manual/Directus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ function createDirectusDeployments(website: WebService, secret: Secret, config:
const externalPushSecret = createExternalPushSecret("isr-token-push-secret", externalSecretProps, kubernetesProvider, website.namespace)


const directusDataPvc = new k8s.core.v1.PersistentVolumeClaim("directus-data-pvc", {
metadata: {
name: "directus-data",
namespace: website.namespace.metadata.name
},
spec: {
accessModes: ["ReadWriteOnce"],
resources: {
requests: {
storage: "10Gi", // Adjust the size as needed
},
},
},
});
return new k8s.apps.v1.Deployment(website.name, {
metadata: {
name: website.name,
Expand All @@ -62,7 +48,7 @@ function createDirectusDeployments(website: WebService, secret: Secret, config:
"strategy": {
"type": "RollingUpdate"
},
replicas: 1,
replicas: 2,
"selector": {
"matchLabels": {
"name": website.name
Expand Down Expand Up @@ -185,13 +171,6 @@ function createDirectusDeployments(website: WebService, secret: Secret, config:
{name:"FLOWS_ENV_ALLOW_LIST", value: "ISR_TOKEN"}

],
volumeMounts: [
{
name: "data",
mountPath: "/directus/uploads",
},
// Mount other volumes if necessary
],

"ports": [
{
Expand All @@ -212,15 +191,6 @@ function createDirectusDeployments(website: WebService, secret: Secret, config:
}
}
],
volumes: [
{
name: "data",
persistentVolumeClaim: {
claimName: directusDataPvc.metadata.name,
},
},
// Define other volumes if necessary
],
}

}
Expand Down

0 comments on commit 32ecddb

Please sign in to comment.