Skip to content

Commit 16e2a9b

Browse files
authored
docs: update instructions for helm install to use GHCR
Signed-off-by: Evan Baker <[email protected]>
1 parent 61e1152 commit 16e2a9b

File tree

6 files changed

+106
-33
lines changed

6 files changed

+106
-33
lines changed
File renamed without changes.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ coverage: # Code coverage.
364364
manifests:
365365
cd crd && make manifests && make generate
366366

367-
HELM_IMAGE_TAG ?= v0.0.1
367+
HELM_IMAGE_TAG ?= v0.0.2
368368

369369
# basic/node-level mode
370370
helm-install: manifests

README.md

+31-16
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,20 @@ Retina has two major features:
3737

3838
### Metrics Quick Install Guide
3939

40-
Prerequisites: Go, Helm
41-
42-
1. Clone the repo, then install Retina on your Kubernetes cluster
40+
Retina can be installed using the Helm chart from GHCR:
41+
42+
```bash
43+
helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
44+
--version v0.0.2 \
45+
--set image.tag=v0.0.2 \
46+
--set operator.tag=v0.0.2 \
47+
--set logLevel=info \
48+
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\]"
49+
```
4350

44-
```bash
45-
make helm-install
46-
```
51+
Set the `version` and image `tag` arguments to the desired version, if different.
4752

48-
2. Follow steps in [Using Prometheus and Grafana](https://retina.sh/docs/installation/prometheus-unmanaged) to set up metrics collection and visualization.
53+
After helm install, follow steps in [Using Prometheus and Grafana](https://retina.sh/docs/installation/prometheus-unmanaged) to set up metrics collection and visualization.
4954

5055
### Captures Quick Start Guide
5156

@@ -83,17 +88,27 @@ For further CLI documentation, see [Capture with Retina CLI](https://retina.sh/d
8388

8489
Prerequisites: Go, Helm
8590

86-
1. Clone the repo, then install Retina with Capture operator support on your Kubernetes cluster
87-
88-
```bash
89-
make helm-install-with-operator
90-
```
91+
1. Install Retina using Helm
92+
93+
```bash
94+
helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
95+
--version v0.0.2 \
96+
--set image.tag=v0.0.2 \
97+
--set operator.tag=v0.0.2 \
98+
--set image.pullPolicy=Always \
99+
--set logLevel=info \
100+
--set os.windows=true \
101+
--set operator.enabled=true \
102+
--set operator.enableRetinaEndpoint=true \
103+
--skip-crds \
104+
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\,packetparser\]"
105+
```
91106

92107
2. Follow steps in [Capture CRD](https://retina.sh/docs/captures/#option-2-capture-crd-custom-resource-definition) for documentation of the CRD and examples for setting up Captures.
93108

94109
## Contributing
95110

96-
This project welcomes contributions and suggestions. Most contributions require you to agree to a
111+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
97112
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
98113
the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
99114

@@ -128,9 +143,9 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
128143

129144
## Contact
130145

131-
For bugs or feature requests, open an [issue](https://github.com/microsoft/retina/issues).
132-
For security or vulnerability concerns, see [SECURITY.md](SECURITY.md).
133-
For other communication, contact the maintainers at <[email protected]>
146+
For bugs or feature requests, open an [issue](https://github.com/microsoft/retina/issues).
147+
For security or vulnerability concerns, see [SECURITY.md](SECURITY.md).
148+
For other communication, contact the maintainers at <[email protected]>.
134149

135150
[goreport-img]: https://goreportcard.com/badge/github.com/microsoft/retina
136151
[goreport]: https://goreportcard.com/report/github.com/microsoft/retina

deploy/manifests/controller/helm/retina/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ os:
1010
operator:
1111
enabled: false
1212
repository: ghcr.io/microsoft/retina/retina-operator
13-
tag: "v0.0.1"
13+
tag: "v0.0.2"
1414
installCRDs: true
1515
enableRetinaEndpoint: false
1616
capture:
@@ -22,7 +22,7 @@ image:
2222
initRepository: ghcr.io/microsoft/retina/retina-init
2323
pullPolicy: Always
2424
# Overrides the image tag whose default is the chart appVersion.
25-
tag: "v0.0.1"
25+
tag: "v0.0.2"
2626

2727
enablePodLevel: false
2828
remoteContext: false

docs/contributing/readme.md

+19-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
This project welcomes contributions and suggestions. Most contributions require you to agree to a
3+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
44
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
55
the rights to use your contribution. For details, visit [https://cla.opensource.microsoft.com](https://cla.opensource.microsoft.com).
66

@@ -19,13 +19,13 @@ contact [[email protected]](mailto:[email protected]) with any additio
1919
[Meeting Link](https://teams.microsoft.com/l/meetup-join/19%3ameeting_OGE5ZTljM2ItNmNmMC00ZmMzLThjMjktNmNjZGE3ODAyZDVj%40thread.v2/0?context=%7b%22Tid%22%3a%2272f988bf-86f1-41af-91ab-2d7cd011db47%22%2c%22Oid%22%3a%22e430e8c5-dd91-4c3c-88c2-6e258812501b%22%7d)
2020

2121
```shell
22-
Meeting ID: 212 979 978 795
23-
Passcode: YjWUEA
22+
Meeting ID: 212 979 978 795
23+
Passcode: YjWUEA
2424
________________________________________
25-
Dial-in by phone
26-
+1 323-849-4874,,951863362# United States, Los Angeles
27-
Find a local number
28-
Phone conference ID: 951 863 362#
25+
Dial-in by phone
26+
+1 323-849-4874,,951863362# United States, Los Angeles
27+
Find a local number
28+
Phone conference ID: 951 863 362#
2929
```
3030

3131
## Development
@@ -83,15 +83,15 @@ To build a `retina-agent` container image with specific tag:
8383

8484
```bash
8585
make retina-image # also pushes to image registy
86-
make retina-operator-image
86+
make retina-operator-image
8787
```
8888

8989
To build binary of a plugin and test it
9090

9191
```bash
9292
# Test packetforward.
9393
$ cd <Retina_repository>/test/plugin/packetforward
94-
$
94+
$
9595
$ go build . && sudo ./packetforward
9696
info metrics Metrics initialized
9797
info packetforward Packet forwarding metric initialized
@@ -107,7 +107,16 @@ debug packetforward Received PacketForward data {"Data": "IngressBytes:8
107107
### Deploying on Kubernetes Cluster
108108

109109
1. Create Kubernetes cluster.
110-
2. Install Retina: `make helm-install`
110+
2. Install Retina using Helm:
111+
112+
```bash
113+
helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
114+
--version v0.0.2 \
115+
--set image.tag=v0.0.2 \
116+
--set operator.tag=v0.0.2 \
117+
--set logLevel=info \
118+
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\]"
119+
```
111120

112121
### Verify Deployment
113122

docs/installation/setup.md

+53-4
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,81 @@ Note: you can also run captures with just the [CLI](./cli.md).
66

77
## Installation
88

9+
When installing with helm, substitute the `version` and image `tag` arguments to the desired version, if different.
10+
911
### Basic Mode
1012

1113
```shell
12-
make helm-install
14+
helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
15+
--version v0.0.2 \
16+
--namespace kube-system \
17+
--set image.tag=v0.0.2 \
18+
--set operator.tag=v0.0.2 \
19+
--set logLevel=info \
20+
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\]"
1321
```
1422

1523
### Basic Mode (with Capture support)
1624

1725
```shell
18-
make helm-install-with-operator
26+
helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
27+
--version v0.0.2 \
28+
--namespace kube-system \
29+
--set image.tag=v0.0.2 \
30+
--set operator.tag=v0.0.2 \
31+
--set logLevel=info \
32+
--set image.pullPolicy=Always \
33+
--set logLevel=info \
34+
--set os.windows=true \
35+
--set operator.enabled=true \
36+
--set operator.enableRetinaEndpoint=true \
37+
--set operator.repository=$(IMAGE_REGISTRY)/$(RETINA_OPERATOR_IMAGE) \
38+
--skip-crds \
39+
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\,packetparser\]"
1940
```
2041

2142
### Advanced Mode with Remote Context (with Capture support)
2243

2344
See [Metric Modes](../metrics/modes.md).
2445

2546
```shell
26-
make helm-install-advanced-remote-context
47+
helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
48+
--version v0.0.2 \
49+
--namespace kube-system \
50+
--set image.tag=v0.0.2 \
51+
--set operator.tag=v0.0.2 \
52+
--set image.pullPolicy=Always \
53+
--set logLevel=info \
54+
--set os.windows=true \
55+
--set operator.enabled=true \
56+
--set operator.enableRetinaEndpoint=true \
57+
--set operator.repository=$(IMAGE_REGISTRY)/$(RETINA_OPERATOR_IMAGE) \
58+
--skip-crds \
59+
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\,packetparser\]" \
60+
--set enablePodLevel=true \
61+
--set remoteContext=true
2762
```
2863

2964
### Advanced Mode with Local Context (with Capture support)
3065

3166
See [Metric Modes](../metrics/modes.md).
3267

3368
```shell
34-
make helm-install-advanced-local-context
69+
helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
70+
--version v0.0.2 \
71+
--namespace kube-system \
72+
--set image.tag=v0.0.2 \
73+
--set operator.tag=v0.0.2 \
74+
--set image.pullPolicy=Always \
75+
--set logLevel=info \
76+
--set os.windows=true \
77+
--set operator.enabled=true \
78+
--set operator.enableRetinaEndpoint=true \
79+
--set operator.repository=$(IMAGE_REGISTRY)/$(RETINA_OPERATOR_IMAGE) \
80+
--skip-crds \
81+
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\,packetparser\]" \
82+
--set enablePodLevel=true \
83+
--set enableAnnotations=true
3584
```
3685

3786
## Next Steps: Configuring Prometheus/Grafana

0 commit comments

Comments
 (0)