-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
77 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/kind-helper | ||
|
||
/.kind-helper | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Copyright © 2023 Fabrice Jammes [email protected] | |
package cmd | ||
|
||
import ( | ||
"github.com/k8s-school/kind-helper/scripts" | ||
"github.com/k8s-school/kind-helper/resources" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
|
@@ -21,7 +21,7 @@ to quickly create a Cobra application.`, | |
Run: func(cmd *cobra.Command, args []string) { | ||
logger.Info("Install ArgoCD") | ||
|
||
ExecCmd(scripts.ArgoCDInstallScript) | ||
ExecCmd(resources.ArgoCDInstallScript) | ||
}, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Copyright © 2023 Fabrice Jammes [email protected] | |
package cmd | ||
|
||
import ( | ||
"github.com/k8s-school/kind-helper/scripts" | ||
"github.com/k8s-school/kind-helper/resources" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
|
@@ -21,7 +21,7 @@ to quickly create a Cobra application.`, | |
Run: func(cmd *cobra.Command, args []string) { | ||
logger.Info("Instal OLM") | ||
|
||
ExecCmd(scripts.OlmInstallScript) | ||
ExecCmd(resources.OlmInstallScript) | ||
}, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# TODO update me! | ||
kind: | ||
# Use host directory to share container images | ||
# extraMountContainerd: true | ||
# Use host directory to share data between host and kind nodes | ||
# host directory will be mounted on /mnt/extra on each node | ||
# extraMountPath: /path/to/host/directory | ||
|
||
# Sets "127.0.0.1" as an extra Subject Alternative Names (SANs) for the API Server signing certificate. | ||
# See https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-APIServer | ||
localcertsans: true | ||
# Usefull to access API server through a ssh tunnel | ||
localcertsans: false | ||
|
||
# Use calico CNI instead of kindnet | ||
# useCalico: true | ||
# Number of worker nodes | ||
workers: 6 | ||
workers: 0 | ||
|
||
# Supported only for mononode cluster | ||
# Certificates must be available on kind host at "/etc/docker/certs.d/{{ .PrivateRegistry }}" | ||
privateRegistry: "docker-registry.docker-registry:5000" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
{{- if .PrivateRegistry }} | ||
containerdConfigPatches: | ||
- |- | ||
[plugins."io.containerd.grpc.v1.cri".registry.configs."{{ .PrivateRegistry }}".tls] | ||
insecure_skip_verify = true | ||
{{- end }} | ||
{{- if .UseCalico }} | ||
networking: | ||
disableDefaultCNI: true # disable kindnet | ||
podSubnet: "192.168.0.0/16" | ||
{{- end }} | ||
kubeadmConfigPatches: | ||
- | | ||
apiVersion: kubeadm.k8s.io/v1beta2 | ||
kind: ClusterConfiguration | ||
metadata: | ||
name: config | ||
apiServer: | ||
extraArgs: | ||
enable-admission-plugins: NodeRestriction,ResourceQuota | ||
{{- if .LocalCertSANs }} | ||
certSANs: | ||
- "127.0.0.1" | ||
{{- end }} | ||
nodes: | ||
- role: control-plane | ||
extraMounts: | ||
{{- if .ExtraMountPath }} | ||
- hostPath: {{ .ExtraMountPath }} | ||
containerPath: /mnt/extra | ||
{{- end }} | ||
{{- range $val := Iterate .Workers }} | ||
- role: worker | ||
{{- end }} |
File renamed without changes.