Skip to content

Commit aa27570

Browse files
fix: nearly working
1 parent c472d37 commit aa27570

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed

cdk8s/src/apps/1password.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Application } from "../../imports/argoproj.io.ts";
33
import versions from "../versions.ts";
44

55
export function createOnePasswordApp(chart: Chart) {
6+
// TODO: create the 1password secrets here
7+
68
new Application(chart, "1password-app", {
79
metadata: {
810
name: "1password",

cdk8s/src/charts/apps.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,30 @@ export function createAppsChart(app: App) {
2727

2828
createStorageClasses(chart);
2929

30-
new Namespace(chart, `torvals-namespace`, {
30+
new Namespace(chart, `openebs-namespace`, {
31+
metadata: {
32+
name: `openebs`,
33+
labels: {
34+
"pod-security.kubernetes.io/enforce": "privileged",
35+
},
36+
},
37+
});
38+
39+
new Namespace(chart, `maintenance-namespace`, {
40+
metadata: {
41+
name: `maintenance`,
42+
labels: {
43+
"pod-security.kubernetes.io/audit": "restricted",
44+
},
45+
},
46+
});
47+
48+
new Namespace(chart, `torvalds-namespace`, {
3149
metadata: {
3250
name: `torvalds`,
51+
labels: {
52+
"pod-security.kubernetes.io/enforce": "privileged",
53+
},
3354
},
3455
});
3556

cdk8s/src/charts/torvalds.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ export function createTorvaldsChart(app: App) {
2727
});
2828

2929
const tvVolume = new ZfsHddVolume(chart, "plex-tv-hdd-pvc", {
30-
storage: Size.tebibytes(8),
30+
storage: Size.tebibytes(2),
3131
});
3232
const downloadsVolume = new ZfsHddVolume(chart, "qbittorrent-hdd-pvc", {
3333
storage: Size.tebibytes(1),
3434
});
3535
const moviesVolume = new ZfsHddVolume(chart, "plex-movies-hdd-pvc", {
36-
storage: Size.tebibytes(8),
36+
storage: Size.tebibytes(2),
3737
});
3838

3939
// TODO: create one namespace/argocd app per service

cdk8s/src/storageclasses.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export function createStorageClasses(chart: Chart) {
1515
allowVolumeExpansion: true,
1616
reclaimPolicy: "Retain",
1717
parameters: {
18-
"csi.storage.k8s.io/fstype": "zfs",
18+
fstype: "zfs",
19+
// "csi.storage.k8s.io/fstype": "zfs",
1920
poolname: "zfspv-pool-nvme",
2021
compression: "off",
2122
dedup: "off",
@@ -31,7 +32,8 @@ export function createStorageClasses(chart: Chart) {
3132
allowVolumeExpansion: true,
3233
reclaimPolicy: "Retain",
3334
parameters: {
34-
"csi.storage.k8s.io/fstype": "zfs",
35+
fstype: "zfs",
36+
// "csi.storage.k8s.io/fstype": "zfs",
3537
poolname: "zfspv-pool-hdd",
3638
compression: "off",
3739
dedup: "off",

0 commit comments

Comments
 (0)