Skip to content

Commit 875ddef

Browse files
committed
Merge branch 'main' into feat/use_addon_stages
2 parents 621d3eb + 9e75ddb commit 875ddef

30 files changed

+497
-35
lines changed

docs/providers/openstack/configuration.md

Lines changed: 28 additions & 34 deletions
Large diffs are not rendered by default.

providers/docker/scs/README.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Cluster Stacks
2+
3+
## Getting started
4+
5+
```sh
6+
# Create bootstrap cluster
7+
echo "
8+
---
9+
kind: Cluster
10+
apiVersion: kind.x-k8s.io/v1alpha4
11+
networking:
12+
ipFamily: dual
13+
nodes:
14+
- role: control-plane
15+
extraMounts:
16+
- hostPath: /var/run/docker.sock
17+
containerPath: /var/run/docker.sock" | kind create cluster --config -
18+
19+
# Init Cluster API
20+
export CLUSTER_TOPOLOGY=true
21+
export EXP_CLUSTER_RESOURCE_SET=true
22+
export EXP_RUNTIME_SDK=true
23+
clusterctl init --infrastructure docker
24+
25+
kubectl -n capi-system rollout status deployment
26+
kubectl -n capd-system rollout status deployment
27+
28+
# Install CSO and CSPO
29+
helm upgrade -i cso \
30+
-n cso-system \
31+
--create-namespace \
32+
oci://registry.scs.community/cluster-stacks/cso \
33+
--set clusterStackVariables.ociRepository=registry.scs.community/kaas/cluster-stacks
34+
35+
kubectl create namespace cluster
36+
```
37+
38+
clusterstack.yaml
39+
40+
```yaml
41+
apiVersion: clusterstack.x-k8s.io/v1alpha1
42+
kind: ClusterStack
43+
metadata:
44+
name: docker
45+
namespace: cluster
46+
spec:
47+
provider: docker
48+
name: scs
49+
kubernetesVersion: "1.30"
50+
channel: custom
51+
autoSubscribe: false
52+
noProvider: true
53+
versions:
54+
- v0-sha.rwvgrna
55+
```
56+
57+
Check if ClusterClasses exist
58+
59+
```sh
60+
kubectl get clusterclass -n cluster
61+
```
62+
63+
cluster.yaml
64+
65+
```yaml
66+
apiVersion: cluster.x-k8s.io/v1beta1
67+
kind: Cluster
68+
metadata:
69+
name: docker-testcluster
70+
namespace: cluster
71+
labels:
72+
managed-secret: cloud-config
73+
spec:
74+
topology:
75+
class: docker-scs-1-30-v0-sha.rwvgrna
76+
controlPlane:
77+
replicas: 1
78+
version: v1.30.10
79+
workers:
80+
machineDeployments:
81+
- class: default-worker
82+
name: md-0
83+
replicas: 1
84+
```
85+
86+
```sh
87+
clusterctl get kubeconfig -n cluster docker-testcluster > /tmp/kubeconfig
88+
kubectl get nodes --kubeconfig /tmp/kubeconfig
89+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
values: |
2+
metrics-server:
3+
commonLabels:
4+
domain: "{{ .Cluster.spec.controlPlaneEndpoint.host }}"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: cilium
3+
repository: https://helm.cilium.io/
4+
version: 1.16.6
5+
digest: sha256:e6a746a27a71acab49c5d54cba2d37eed32e04f8b74af5651e2266ae251c55d8
6+
generated: "2025-02-13T12:55:17.200292016+01:00"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v2
2+
type: application
3+
description: Croquette CNI
4+
name: CNI
5+
version: v1
6+
dependencies:
7+
- alias: cilium
8+
name: cilium
9+
repository: https://helm.cilium.io/
10+
version: 1.16.6
200 KB
Binary file not shown.

providers/docker/scs/cluster-addon/cni/values.yaml

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: metrics-server
3+
repository: https://kubernetes-sigs.github.io/metrics-server/
4+
version: 3.12.2
5+
digest: sha256:b79715342d7c10e97664b5f4d79199044f5da6ef40cca906218cff05ca891122
6+
generated: "2025-01-13T15:40:51.780206883+01:00"

0 commit comments

Comments
 (0)