Skip to content

Commit

Permalink
tetragon: docs, copy Cilium style k8s install
Browse files Browse the repository at this point in the history
The K8s quickstart guide lists a couple options for installing a K8s
cluster -- kind and gke. Lets copy the tabular version Cilium docs
have that also has other examples for a few different options.

Signed-off-by: John Fastabend <[email protected]>
  • Loading branch information
jrfastab committed Oct 6, 2023
1 parent b3c6e53 commit 3a03f6d
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/Dockerfile.hugo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM curlimages/curl:8.00.1@sha256:9e886c104cae1072f7874c9c214f77c6758f2e8a477234e32eda5fcbfa41f225 AS downloader
ARG HUGO_VERSION=0.111.3
ARG HUGO_VERSION=0.119.0
ARG TARGETARCH
WORKDIR tmp
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz | tar xz
Expand Down
51 changes: 37 additions & 14 deletions docs/content/en/docs/getting-started/kubernetes-quickstart-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,48 @@ the defaults options.

### Create a cluster

Create a Kubernetes cluster using Kind or GKE.
If you don't have a Kubernetes Cluster yet, you can use the instructions below
to create a Kubernetes cluster locally or using a managed Kubernetes service:

#### Kind
{{< tabpane >}}
{{% tab header="GKE" %}}

Run the following command to create the Kubernetes cluster:
```
kind create cluster
```

#### GKE
The following commands create a Kubernetes cluster using [Google
Kubernetes Engine](https://cloud.google.com/kubernetes-engine). See
[Installing Google Cloud SDK](https://cloud.google.com/sdk/install) for
instructions on how to install `gcloud` and prepare your account.

Run the following command to create a GKE cluster:

```shell
export NAME="$(whoami)-$RANDOM"
# Create the node pool with the following taint to guarantee that
# Pods are only scheduled/executed in the node when Cilium is ready.
# Alternatively, see the note below.
gcloud container clusters create "${NAME}" \
--zone us-west2-a \
--num-nodes 1
```
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--zone us-west2-a
gcloud container clusters get-credentials "${NAME}" --zone us-west2-a

{{% /tab %}}
{{< /tabpane >}}


## The Tabset Section

### First Tab

Here is the first tab's content.

### Second Tab

Here is the second tab's content

# Tabby {.tabset .tabset-fade}

## GKE
GKE

## AKS
AKS


### Deploy Tetragon

Expand Down
2 changes: 0 additions & 2 deletions docs/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/cilium/tetragon.io

go 1.19

require github.com/google/docsy v0.6.0 // indirect
5 changes: 0 additions & 5 deletions docs/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20220831210243-d3a7818c253f/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.6.0 h1:43bVF18t2JihAamelQjjGzx1vO2ljCilVrBgetCA8oI=
github.com/google/docsy v0.6.0/go.mod h1:VKKLqD8PQ7AglJc98yBorATfW7GrNVsn0kGXVYF6G+M=
github.com/google/docsy/dependencies v0.6.0/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE=
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
2 changes: 1 addition & 1 deletion docs/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ enable = false
# replacements = "github.com/google/docsy -> ../../docsy"
[module.hugoVersion]
extended = true
min = "0.75.0"
min = "0.119.0"
[[module.imports]]
path = "github.com/google/docsy"
disable = false
Expand Down

0 comments on commit 3a03f6d

Please sign in to comment.