Skip to content

Commit

Permalink
fix: substconfigmap one for each serverset instance
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiGuranIonos committed Aug 20, 2024
1 parent 3c354d9 commit 7250230
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
7 changes: 4 additions & 3 deletions examples/ionoscloud/compute/serverset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
providerConfigRef:
name: example
forProvider:
replicas: 1
replicas: 2
datacenterConfig:
datacenterIdRef:
name: example
Expand Down Expand Up @@ -100,13 +100,14 @@ spec:
# createBeforeDestroyBootVolume createAllBeforeDestroy
type: "createBeforeDestroyBootVolume"
image: "28d0fa34-927f-11ee-8008-6202af74e858"
size: 10
size: 20
type: HDD
userData: "" #cloud-config
imagePassword: "thisshouldbesecret"
substitutions:

- options:
cidr: "10.0.0.0/24"
cidr: "192.168.42.0/24"
key: ipv4Address
type: ipv4Address
unique: true
Expand Down
23 changes: 15 additions & 8 deletions examples/ionoscloud/compute/statefulserverset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
metadata:
name: server-name
spec:
cpuFamily: AMD_OPTERON
cpuFamily: INTEL_XEON
cores: 1
ram: 1024 # (32*storageTB)
nics:
Expand All @@ -49,12 +49,24 @@ spec:
name: boot-volume
spec:
updateStrategy:
type: "createAllBeforeDestroy" # createBeforeDestroyBootVolume createAllBeforeDestroy
type: "createBeforeDestroyBootVolume" # createBeforeDestroyBootVolume createAllBeforeDestroy
image: "28d0fa34-927f-11ee-8008-6202af74e858"
size: 10
type: HDD
type: SSD
userData: "" #cloud-config
imagePassword: "thisshouldwork11"
substitutions:
- options:
cidr: "fd1d:15db:cf64:1337::/64"
key: __ipv6Address
type: ipv6Address
unique: true
- options:
cidr: "192.168.42.0/24"
key: ipv4Address
type: ipv4Address
unique: true

lans:
# Three LANs are defined - an internal one (data) with IPv6 enabled and DHCP disabled for DRBD + VRRP traffic,
# a management network for connectivity to K8S and management as well as
Expand All @@ -80,11 +92,6 @@ spec:
spec:
size: 10
type: SSD
- metadata:
name: storage-disk-extend-1
spec:
size: 10
type: SSD
providerConfigRef:
name: example
---
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ require (
github.com/stretchr/testify v1.8.4
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.22.0
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3
gopkg.in/alecthomas/kingpin.v2 v2.2.6
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.29.1
Expand Down Expand Up @@ -79,7 +80,6 @@ require (
github.com/stretchr/objx v0.5.0 // indirect
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/oauth2 v0.15.0 // indirect
Expand Down

0 comments on commit 7250230

Please sign in to comment.