Skip to content

Commit ee9311a

Browse files
authored
Merge pull request #160 from epics-containers/argocd-update
Argocd update
2 parents 44bbd64 + e80436d commit ee9311a

File tree

1 file changed

+36
-26
lines changed

1 file changed

+36
-26
lines changed

docs/tutorials/setup_k8s.md

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -130,32 +130,6 @@ kubectl config set-context t03-beamline --namespace=t03-beamline --user=default
130130
kubectl config use-context t03-beamline
131131
```
132132

133-
### Set up Argo CD
134-
135-
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. As per <https://argo-cd.readthedocs.io/en/stable/> it can be installed into the cluster as follows:
136-
137-
```
138-
kubectl create namespace argocd
139-
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
140-
```
141-
142-
To access the gui through a browser on `https://localhost:8080/`:
143-
```
144-
kubectl port-forward svc/argocd-server -n argocd 8080:443
145-
```
146-
147-
The user is `admin` and the password can be retrived using:
148-
```
149-
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 --decode ; echo
150-
```
151-
152-
To install the `argocd` cli tool:
153-
```
154-
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
155-
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
156-
rm argocd-linux-amd64
157-
```
158-
159133
### Install persistent volume support
160134

161135
As per <https://docs.k3s.io/storage/>, the "Longhorn" distributed block storage system can be set up in our cluster. This is done in order to get support for ReadWriteMany persistent volume claims, which is not supported by the out of the box "Local Path Provisioner".
@@ -223,6 +197,42 @@ Finally generate a short duration token that can be used to log in:
223197
kubectl -n kubernetes-dashboard create token admin-user
224198
```
225199

200+
201+
### Set up Argo CD
202+
203+
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. As per <https://argo-cd.readthedocs.io/en/stable/> it can be installed into the cluster as follows:
204+
205+
```
206+
kubectl create namespace argocd
207+
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
208+
```
209+
210+
To access the gui through a browser on `https://localhost:8080/`:
211+
```
212+
kubectl port-forward svc/argocd-server -n argocd 8080:443
213+
```
214+
215+
The user is `admin` and the password can be retrived using:
216+
```
217+
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 --decode ; echo
218+
```
219+
220+
To install the `argocd` cli tool:
221+
```
222+
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
223+
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
224+
rm argocd-linux-amd64
225+
```
226+
227+
Create a new argocd project from the command line, with permissions to deploy into your namespace:
228+
```
229+
argocd login localhost:8080
230+
argocd proj create t03 -d https://kubernetes.default.svc,t03-beamline -d https://kubernetes.default.svc,argocd -s "*"
231+
```
232+
233+
When deploying to the same cluster that Argo CD is running in the destination cluster is by default aliased as "in-cluster".
234+
Argocd Apps should be deployed into the argocd namespace.
235+
226236
### Completed
227237

228238
That's it. You now have installed the necessary software to start experimenting with IOCs on Kubernetes.

0 commit comments

Comments
 (0)