Commit 0f7798b6 authored by Mikhail Mazurskiy's avatar Mikhail Mazurskiy Committed by Marcia Ramos

Don't mention :latest in the docs

parent fcd232b7
...@@ -253,17 +253,21 @@ For GitLab.com users, the KAS is available at `wss://kas.gitlab.com`. ...@@ -253,17 +253,21 @@ For GitLab.com users, the KAS is available at `wss://kas.gitlab.com`.
Replace the value of `agent-token` below with the token received from the previous step. Also, replace `kas-address` with the configured access of the Kubernetes Agent Server: Replace the value of `agent-token` below with the token received from the previous step. Also, replace `kas-address` with the configured access of the Kubernetes Agent Server:
```shell ```shell
docker run --rm registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:latest generate --agent-token=your-agent-token --kas-address=wss://kas.gitlab.example.com --agent-version latest | kubectl apply -f - docker run --pull=always --rm registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:stable generate --agent-token=your-agent-token --kas-address=wss://kas.gitlab.example.com --agent-version stable | kubectl apply -f -
``` ```
Set `agent-version` to the latest released patch version matching your Set `--agent-version` to the latest released patch version matching your
GitLab installation's major and minor versions. For example, if you have GitLab installation's major and minor versions. For example, if you have
GitLab v13.9.0, set `--agent-version=v13.9.1`. GitLab v13.9.0, set `--agent-version=v13.9.1`.
WARNING:
Version `stable` can be used to refer to the latest stable release at the time when the command runs. It's fine for
testing purposes but for production please make sure to specify a matching version explicitly.
To find out the various options the above Docker container supports, run: To find out the various options the above Docker container supports, run:
```shell ```shell
docker run --rm -it registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:latest generate --help docker run --pull=always --rm registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:stable generate --help
``` ```
#### Advanced installation #### Advanced installation
...@@ -360,7 +364,8 @@ spec: ...@@ -360,7 +364,8 @@ spec:
serviceAccountName: gitlab-agent serviceAccountName: gitlab-agent
containers: containers:
- name: agent - name: agent
image: "registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:latest" # Make sure to specify a matching version for production
image: "registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:stable"
args: args:
- --token-file=/config/token - --token-file=/config/token
- --kas-address - --kas-address
...@@ -647,7 +652,7 @@ Then in `resources.yml`: ...@@ -647,7 +652,7 @@ Then in `resources.yml`:
serviceAccountName: gitlab-agent serviceAccountName: gitlab-agent
containers: containers:
- name: agent - name: agent
image: "registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:latest" image: "registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:<version>"
args: args:
- --token-file=/config/token - --token-file=/config/token
- --kas-address - --kas-address
...@@ -677,7 +682,7 @@ Alternatively, you can mount the certificate file at a different location and in ...@@ -677,7 +682,7 @@ Alternatively, you can mount the certificate file at a different location and in
```plaintext ```plaintext
containers: containers:
- name: agent - name: agent
image: "registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:latest" image: "registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:<version>"
args: args:
- --ca-cert-file=/tmp/myCA.pem - --ca-cert-file=/tmp/myCA.pem
- --token-file=/config/token - --token-file=/config/token
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment