Skip to content

Commit 0356d30

Browse files
kostis-codefreshschlags
authored andcommitted
docs: alternative installation method (#110)
Signed-off-by: Kostis Kapelonis <kostis@codefresh.io>
1 parent df4fbe3 commit 0356d30

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

docs/installation.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Follow the [official instructions](https://argo-rollouts.readthedocs.io/en/stabl
1111

1212
Optionally install the [Argo Rollouts CLI](https://argoproj.github.io/argo-rollouts/features/kubectl-plugin/) in order to control Rollouts from your terminal.
1313

14-
## Installing the plugin
14+
## Installing the plugin via HTTP(S)
1515

1616
To install the plugin create a configmap with the following syntax:
1717

1818
```yaml
1919
apiVersion: v1
2020
kind: ConfigMap
2121
metadata:
22-
name: argo-rollouts-config # must be so name
22+
name: argo-rollouts-config # must be named like this
2323
namespace: argo-rollouts # must be in this namespace
2424
data:
2525
trafficRouterPlugins: |-
@@ -35,7 +35,7 @@ For example for a Linux/x86 cluster save the following in a file of your choosin
3535
apiVersion: v1
3636
kind: ConfigMap
3737
metadata:
38-
name: argo-rollouts-config # must be so name
38+
name: argo-rollouts-config # must be named like this
3939
namespace: argo-rollouts # must be in this namespace
4040
data:
4141
trafficRouterPlugins: |-
@@ -45,6 +45,35 @@ data:
4545

4646
Deploy this file with `kubectl apply -f gateway-plugin.yml -n argo-rollouts`. You can also use [Argo CD](https://argoproj.github.io/cd/) or any other Kubernetes deployment method that you prefer.
4747

48+
## Installing the plugin via init containers
49+
50+
Use the [Argo Rollouts Helm chart](https://argoproj.github.io/argo-helm/) and change the [default values](https://artifacthub.io/packages/helm/argo/argo-rollouts):
51+
52+
```yaml
53+
controller:
54+
initContainers:
55+
- name: copy-gwapi-plugin
56+
image: ghcr.io/argoproj-labs/rollouts-plugin-trafficrouter-gatewayapi:v0.5.0
57+
command: ["/bin/sh", "-c"]
58+
args:
59+
- cp /bin/rollouts-plugin-trafficrouter-gatewayapi /plugins
60+
volumeMounts:
61+
- name: gwapi-plugin
62+
mountPath: /plugins
63+
trafficRouterPlugins:
64+
trafficRouterPlugins: |-
65+
- name: argoproj-labs/gatewayAPI
66+
location: "file:///plugins/rollouts-plugin-trafficrouter-gatewayapi"
67+
volumes:
68+
- name: gwapi-plugin
69+
emptyDir: {}
70+
volumeMounts:
71+
- name: gwapi-plugin
72+
mountPath: /plugins
73+
```
74+
75+
We publish [container images](https://github.com/argoproj-labs/rollouts-plugin-trafficrouter-gatewayapi/pkgs/container/rollouts-plugin-trafficrouter-gatewayapi) for both ARM and x86.
76+
4877
For more installation options see the [Plugin documentation](https://argoproj.github.io/argo-rollouts/features/traffic-management/plugins/) at the main Argo Rollouts site.
4978

5079
## Verifying the installation

0 commit comments

Comments
 (0)