-
Notifications
You must be signed in to change notification settings - Fork 157
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
weave-gitops-bot
committed
Dec 8, 2022
1 parent
9229d8f
commit 393151f
Showing
145 changed files
with
12,289 additions
and
17 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
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
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
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
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
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
24 changes: 24 additions & 0 deletions
24
website/versioned_docs/version-0.12.0/_components/CurlCodeBlock.jsx
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,24 @@ | ||
import React from "react"; | ||
|
||
import CodeBlock from "@theme/CodeBlock"; | ||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
|
||
export default function CurlCodeBlock({ localPath, hostedPath, content }) { | ||
return ( | ||
<> | ||
<BrowserOnly> | ||
{() => ( | ||
<CodeBlock className="language-bash"> | ||
curl -o {localPath} {window.location.protocol} | ||
//{window.location.host} | ||
{hostedPath} | ||
</CodeBlock> | ||
)} | ||
</BrowserOnly> | ||
|
||
<CodeBlock title={localPath} className="language-yaml"> | ||
{content} | ||
</CodeBlock> | ||
</> | ||
); | ||
} |
32 changes: 32 additions & 0 deletions
32
website/versioned_docs/version-0.12.0/_components/TierLabel.jsx
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,32 @@ | ||
import React from "react"; | ||
import Link from "@docusaurus/Link"; | ||
import useGlobalData from "@docusaurus/useGlobalData"; | ||
|
||
const containerStyle = { | ||
fontSize: 16, | ||
marginLeft: 4, | ||
fontVariant: "all-small-caps", | ||
}; | ||
|
||
// This determines the current version of the docs you're looking at | ||
// E.g. /docs/next or /docs/0.2.5 | ||
const getCurrentVersionPath = () => { | ||
const { "docusaurus-plugin-content-docs": data } = useGlobalData(); | ||
const currentVersion = data?.default?.versions?.find( | ||
(v) => v.name === "current" | ||
); | ||
// Fallback to /docs just in case. Not sure if this is async etc. | ||
return currentVersion?.path || "/docs"; | ||
}; | ||
|
||
export default function TierLabel({ tiers }) { | ||
return ( | ||
<Link | ||
to={`${getCurrentVersionPath()}/enterprise/intro`} | ||
title={`This feature is a available on ${tiers}`} | ||
style={containerStyle} | ||
> | ||
{tiers} | ||
</Link> | ||
); | ||
} |
48 changes: 48 additions & 0 deletions
48
website/versioned_docs/version-0.12.0/assets/example-enterprise-helm.yaml
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,48 @@ | ||
apiVersion: source.toolkit.fluxcd.io/v1beta2 | ||
kind: HelmRepository | ||
metadata: | ||
name: weave-gitops-enterprise-charts | ||
namespace: flux-system | ||
spec: | ||
interval: 60m | ||
secretRef: | ||
name: weave-gitops-enterprise-credentials | ||
url: https://charts.dev.wkp.weave.works/releases/charts-v3 | ||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: weave-gitops-enterprise | ||
namespace: flux-system | ||
spec: | ||
chart: | ||
spec: | ||
interval: 65m | ||
chart: mccp | ||
sourceRef: | ||
kind: HelmRepository | ||
name: weave-gitops-enterprise-charts | ||
namespace: flux-system | ||
version: 0.11.0 | ||
install: | ||
crds: CreateReplace | ||
upgrade: | ||
crds: CreateReplace | ||
interval: 50m | ||
values: | ||
# -- Configure TLS settings if needed | ||
# tls: | ||
# -- Can be disabled if TLS is handled by a user-provided ingress controller | ||
# enabled: true | ||
# -- optionally specify a TLS secret | ||
# secretName: null | ||
config: | ||
capi: | ||
repositoryURL: https://github.com/$GITHUB_USER/fleet-infra | ||
# -- Can be changed depending on your git repo structure | ||
# repositoryPath: ./clusters/management/clusters | ||
# repositoryClustersPath: ./cluster | ||
git: | ||
type: github | ||
# -- Change if using on-prem github/gitlab | ||
# hostname: https://github.com |
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 @@ | ||
"# keep" |
158 changes: 158 additions & 0 deletions
158
website/versioned_docs/version-0.12.0/assets/templates/capd-template.yaml
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,158 @@ | ||
apiVersion: capi.weave.works/v1alpha1 | ||
kind: CAPITemplate | ||
metadata: | ||
name: cluster-template-development | ||
namespace: default | ||
labels: | ||
weave.works/template-type: cluster | ||
spec: | ||
description: A simple CAPD template | ||
params: | ||
- name: CLUSTER_NAME | ||
required: true | ||
description: This is used for the cluster naming. | ||
- name: NAMESPACE | ||
description: Namespace to create the cluster in | ||
- name: KUBERNETES_VERSION | ||
description: Kubernetes version to use for the cluster | ||
options: ["1.19.11", "1.21.1", "1.22.0", "1.23.3"] | ||
- name: CONTROL_PLANE_MACHINE_COUNT | ||
description: Number of control planes | ||
options: ["1", "2", "3"] | ||
- name: WORKER_MACHINE_COUNT | ||
description: Number of worker machines | ||
resourcetemplates: | ||
- apiVersion: gitops.weave.works/v1alpha1 | ||
kind: GitopsCluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
namespace: "${NAMESPACE}" | ||
labels: | ||
weave.works/capi: bootstrap | ||
spec: | ||
capiClusterRef: | ||
name: "${CLUSTER_NAME}" | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
namespace: "${NAMESPACE}" | ||
labels: | ||
cni: calico | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
serviceDomain: cluster.local | ||
services: | ||
cidrBlocks: | ||
- 10.128.0.0/12 | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
name: "${CLUSTER_NAME}-control-plane" | ||
namespace: "${NAMESPACE}" | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerCluster | ||
name: "${CLUSTER_NAME}" | ||
namespace: "${NAMESPACE}" | ||
- apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerCluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
namespace: "${NAMESPACE}" | ||
- apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-control-plane" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
template: | ||
spec: | ||
extraMounts: | ||
- containerPath: /var/run/docker.sock | ||
hostPath: /var/run/docker.sock | ||
- apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
metadata: | ||
name: "${CLUSTER_NAME}-control-plane" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
kubeadmConfigSpec: | ||
clusterConfiguration: | ||
apiServer: | ||
certSANs: | ||
- localhost | ||
- 127.0.0.1 | ||
- 0.0.0.0 | ||
controllerManager: | ||
extraArgs: | ||
enable-hostpath-provisioner: "true" | ||
initConfiguration: | ||
nodeRegistration: | ||
criSocket: /var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
joinConfiguration: | ||
nodeRegistration: | ||
criSocket: /var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
machineTemplate: | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
name: "${CLUSTER_NAME}-control-plane" | ||
namespace: "${NAMESPACE}" | ||
replicas: "${CONTROL_PLANE_MACHINE_COUNT}" | ||
version: "${KUBERNETES_VERSION}" | ||
- apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-0" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
template: | ||
spec: {} | ||
- apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-0" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
template: | ||
spec: | ||
joinConfiguration: | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachineDeployment | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-0" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
clusterName: "${CLUSTER_NAME}" | ||
replicas: "${WORKER_MACHINE_COUNT}" | ||
selector: | ||
matchLabels: null | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
name: "${CLUSTER_NAME}-md-0" | ||
namespace: "${NAMESPACE}" | ||
clusterName: "${CLUSTER_NAME}" | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
name: "${CLUSTER_NAME}-md-0" | ||
namespace: "${NAMESPACE}" | ||
version: "${KUBERNETES_VERSION}" |
4 changes: 4 additions & 0 deletions
4
website/versioned_docs/version-0.12.0/cluster-management/_category_.json
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,4 @@ | ||
{ | ||
"label": "Cluster Management", | ||
"position": 6 | ||
} |
Oops, something went wrong.