Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strengthen the warning about reusing certificates in the yaml installation. #3167

Merged
merged 1 commit into from
May 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion site/content/en/docs/Installation/Install Agones/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ linkTitle: "Install Agones"
weight: 20
description: >
Install Agones in your existing Kubernetes cluster.
---
---

If you have not yet created a cluster, [follow the instructions]({{< ref "/docs/Installation/Creating Cluster/" >}})
for the environment where you will be running Agones.
35 changes: 23 additions & 12 deletions site/content/en/docs/Installation/Install Agones/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,38 @@ description: >
We can install Agones to the cluster using an install.yaml file.
---

### Installing Agones
## Installing Agones

{{< alert title="Warning" color="warning">}}
Installing Agones with the `install.yaml` will set up the TLS certificates
stored in this repository for securing Kubernetes webhooks communication.
Installing Agones with the `install.yaml` file will use pre-generated, well known TLS
certificates stored in this repository for securing Kubernetes webhooks communication.

If you want to generate new certificates or use your own for production workloads,
we recommend using the [helm installation]({{< relref "helm.md" >}}).
For production workloads, we **strongly** recommend using the
[helm installation]({{< relref "helm.md" >}}) which allows you to generate
new, unique certificates or provide your own certificates. Alternatively,
you can use `helm template` as described [below](#customizing-your-install)
to generate a custom yaml installation file with unique certificates.
{{< /alert >}}

Installing Agones using the pre-generated `install.yaml` file is the quickest,
simplest way to get Agones up and running in your Kubernetes cluster:

```bash
kubectl create namespace agones-system
kubectl apply --server-side -f https://raw.githubusercontent.com/googleforgames/agones/{{< release-branch >}}/install/yaml/install.yaml
```

To change the [configurable parameters](https://agones.dev/site/docs/installation/install-agones/helm/#configuration) in the `install.yaml` file, you can use helm directly to generate a custom file locally.
You can also find the `install.yaml` in the latest `agones-install` zip from the [releases](https://github.com/googleforgames/agones/releases) archive.

### Customizing your install

The following example sets the `featureGates` and `generateTLS` helm parameters in `install.yaml`:
To change the [configurable parameters](https://agones.dev/site/docs/installation/install-agones/helm/#configuration)
in the `install.yaml` file, you can use `helm template` to generate a custom file locally
without needing to use helm to install Agones into your cluster.

The following example sets the `featureGates` and `generateTLS` helm parameters
and creates a customized `install-custom.yaml` file (note that the `pull`
command was introduced in Helm version 3):

```bash
helm pull --untar https://agones.dev/chart/stable/agones-{{< release-version >}}.tgz && \
Expand All @@ -36,11 +50,8 @@ helm template agones-manual --namespace agones-system . \
--set agones.featureGates="PlayerTracking=true" \
> install-custom.yaml
```
Note: `pull` command was introduced in Helm version 3.

You can also find the install.yaml in the latest `agones-install` zip from the [releases](https://github.com/googleforgames/agones/releases) archive.

### Uninstalling Agones
## Uninstalling Agones

To uninstall/delete the `Agones` deployment and delete `agones-system` namespace:

Expand All @@ -51,7 +62,7 @@ kubectl delete -f https://raw.githubusercontent.com/googleforgames/agones/{{< re
kubectl delete namespace agones-system
```

Note: you should wait up to a couple of minutes until all resources described in `install.yaml` file would be deleted.
Note: It may take a couple of minutes until all resources described in `install.yaml` file are deleted.

## Next Steps

Expand Down