File tree 6 files changed +55
-3
lines changed
6 files changed +55
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ some things I'm proud of:
83
83
1. Bootstrap the Kubernetes cluster:
84
84
85
85
` ` ` bash
86
- talosctl bootstrap --nodes 192.168.1.81
86
+ talosctl bootstrap --nodes 192.168.1.8 talosctl bootstrap --nodes 192.168.1.811
87
87
` ` `
88
88
89
89
1. Create a Kubernetes configuration:
Original file line number Diff line number Diff line change
1
+ import { Chart } from "cdk8s" ;
2
+ import { Application } from "../../imports/argoproj.io.ts" ;
3
+ import versions from "../versions.ts" ;
4
+
5
+ export function createOpenEBSApp ( chart : Chart ) {
6
+ new Application ( chart , "openebs-app" , {
7
+ metadata : {
8
+ name : "openebs" ,
9
+ } ,
10
+ spec : {
11
+ project : "default" ,
12
+ source : {
13
+ repoUrl : "https://openebs.github.io/openebs" ,
14
+ targetRevision : versions [ "openebs" ] ,
15
+ chart : "openebs" ,
16
+ helm : {
17
+ parameters : [
18
+ { name : "engines.replicated.mayastor.enabled" , value : "false" } ,
19
+ { name : "engines.local.lvm.enabled" , value : "false" } ,
20
+ { name : "zfs-localpv.zfsNode.encrKeysDir" , value : "/var" } ,
21
+ ] ,
22
+ } ,
23
+ } ,
24
+ destination : {
25
+ server : "https://kubernetes.default.svc" ,
26
+ namespace : "openebs" ,
27
+ } ,
28
+ syncPolicy : {
29
+ automated : { } ,
30
+ syncOptions : [ "CreateNamespace=true" ] ,
31
+ } ,
32
+ } ,
33
+ } ) ;
34
+ }
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { createLokiApp } from "../apps/loki.ts";
17
17
import { createPromtailApp } from "../apps/promtail.ts" ;
18
18
import { Namespace } from "cdk8s-plus" ;
19
19
import { createStorageClasses } from "../storageclasses.ts" ;
20
+ import { createOpenEBSApp } from "../apps/openebs.ts" ;
20
21
21
22
export function createAppsChart ( app : App ) {
22
23
const chart = new Chart ( app , "apps" , {
@@ -26,6 +27,12 @@ export function createAppsChart(app: App) {
26
27
27
28
createStorageClasses ( chart ) ;
28
29
30
+ new Namespace ( chart , `torvals-namespace` , {
31
+ metadata : {
32
+ name : `torvalds` ,
33
+ } ,
34
+ } ) ;
35
+
29
36
new Namespace ( chart , `scout-beta-namespace` , {
30
37
metadata : {
31
38
name : `scout-beta` ,
@@ -38,6 +45,7 @@ export function createAppsChart(app: App) {
38
45
} ,
39
46
} ) ;
40
47
48
+ createOpenEBSApp ( chart ) ;
41
49
createOnePasswordApp ( chart ) ;
42
50
createArgoCdApp ( chart ) ;
43
51
createTailscaleApp ( chart ) ;
Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ export function createStorageClasses(chart: Chart) {
15
15
allowVolumeExpansion : true ,
16
16
reclaimPolicy : "Retain" ,
17
17
parameters : {
18
- fstype : "zfs" ,
18
+ "csi.storage.k8s.io/ fstype" : "zfs" ,
19
19
poolname : "zfspv-pool-nvme" ,
20
20
compression : "off" ,
21
21
dedup : "off" ,
22
22
recordsize : "128k" ,
23
23
shared : "yes" ,
24
24
} ,
25
+ volumeBindingMode : "WaitForFirstConsumer" ,
25
26
} ) ;
26
27
27
28
new KubeStorageClass ( chart , "host-zfs-hdd" , {
@@ -30,13 +31,14 @@ export function createStorageClasses(chart: Chart) {
30
31
allowVolumeExpansion : true ,
31
32
reclaimPolicy : "Retain" ,
32
33
parameters : {
33
- fstype : "zfs" ,
34
+ "csi.storage.k8s.io/ fstype" : "zfs" ,
34
35
poolname : "zfspv-pool-hdd" ,
35
36
compression : "off" ,
36
37
dedup : "off" ,
37
38
recordsize : "128k" ,
38
39
shared : "yes" ,
39
40
} ,
41
+ volumeBindingMode : "WaitForFirstConsumer" ,
40
42
} ) ;
41
43
42
44
new VolumeSnapshotClass ( chart , "host-zfs-snapshot" , {
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ const versions = {
79
79
"loki" : "6.29.0" ,
80
80
// renovate: datasource=helm registryUrl=https://grafana.github.io/helm-charts versioning=semver
81
81
"promtail" : "6.16.6" ,
82
+ // renovate: datasource=helm registryUrl=https://openebs.github.io/openebs versioning=semver
83
+ "openebs" : "4.2.0" ,
82
84
"shepherdjerred/scout-for-lol/beta" : "1.0.165" ,
83
85
"shepherdjerred/scout-for-lol/prod" : "1.0.2" ,
84
86
// renovate: datasource=docker registryUrl=https://docker.io versioning=docker
Original file line number Diff line number Diff line change 19
19
hostPath :
20
20
path : /var/mnt
21
21
type : Directory
22
+ - name : host-root
23
+ hostPath :
24
+ path : /
25
+ type : Directory
22
26
containers :
23
27
- command : ["sleep", "infinity"]
24
28
image : debian
29
33
volumeMounts :
30
34
- name : var-mnt
31
35
mountPath : /var/mnt
36
+ - name : host-root
37
+ mountPath : /host-root
You can’t perform that action at this time.
0 commit comments