Skip to content

Commit 15d8c99

Browse files
Added taloss dockerfile
1 parent 4e8c638 commit 15d8c99

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

Dockerfile-taloses

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM alpine:3.19.0
2+
3+
RUN apk add --no-cache \
4+
ca-certificates \
5+
py3-kubernetes \
6+
py3-yaml \
7+
py3-jsonpatch \
8+
curl \
9+
wget \
10+
openssl
11+
12+
RUN wget https://github.com/siderolabs/talos/releases/download/v1.4.1/talosctl-linux-amd64 -O /usr/local/bin/talosctl-1.4.1 && \
13+
chmod +x /usr/local/bin/talosctl-1.4.1
14+
RUN alias t41=/usr/local/bin/talosctl-1.4.1
15+
RUN wget https://github.com/siderolabs/talos/releases/download/v1.4.8/talosctl-linux-amd64 -O /usr/local/bin/talosctl-1.4.8 && \
16+
chmod +x /usr/local/bin/talosctl-1.4.8
17+
RUN alias t48=/usr/local/bin/talosctl-1.4.8
18+
19+
RUN wget https://github.com/siderolabs/talos/releases/download/v1.5.0/talosctl-linux-amd64 -O /usr/local/bin/talosctl-1.5.0 && \
20+
chmod +x /usr/local/bin/talosctl-1.5.0
21+
RUN alias t50=/usr/local/bin/talosctl-1.5.0
22+
RUN wget https://github.com/siderolabs/talos/releases/download/v1.5.6/talosctl-linux-amd64 -O /usr/local/bin/talosctl-1.5.6 && \
23+
chmod +x /usr/local/bin/talosctl-1.5.6
24+
RUN alias t56=/usr/local/bin/talosctl-1.5.6
25+
26+
RUN wget https://github.com/siderolabs/talos/releases/download/v1.6.0/talosctl-linux-amd64 -O /usr/local/bin/talosctl-1.6.0 && \
27+
chmod +x /usr/local/bin/talosctl-1.6.0
28+
RUN alias t60=/usr/local/bin/talosctl-1.6.0
29+
RUN wget https://github.com/siderolabs/talos/releases/download/v1.6.6/talosctl-linux-amd64 -O /usr/local/bin/talosctl-1.6.6 && \
30+
chmod +x /usr/local/bin/talosctl-1.6.6
31+
RUN alias t66=/usr/local/bin/talosctl-1.6.6

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,20 @@ Check that kubectl resources are deployed as expected.
5151

5252
ArgoCD can be accessed on the link after port forwarding
5353

54-
```kubectl port-forward svc/argocd-server -n argocd 8080:443 --kubeconfig=talos_outptu/kubeconfig```
54+
```kubectl port-forward svc/argocd-server -n argocd 8080:443 --kubeconfig=talos_output/kubeconfig```
5555

5656
The credentials to access the ArgoCD GUI are present in the secret argocd-initial-admin-secret. These credentials need to be updated after the first login, and this would be a manual process. In a production environment the point is to never have to access the ArgoCD UI/CLI and instead have everything managed through in this case the https://github.com/eficode-academy/k8s-edge-gitops repo.
5757

5858
You can retrieve the password using the command below:
5959

60-
```kubectl --kubeconfig=talos_output/kubeconfig -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo```
60+
```kubectl --kubeconfig=talos_output/kubeconfig -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo```
61+
62+
63+
## Talos commands:
64+
`docker run -ti -v ${PWD}:/k8s-edge-infra -w /k8s-edge-infra taloss`
65+
`talosctl-1.4.1 -n 192.168.1.109 -e 192.168.1.109 --talosconfig talos_output/talosconfig dashboard`
66+
`talosctl-1.4.8 -n 192.168.1.109 -e 192.168.1.109 --talosconfig talos_output/talosconfig dashboard`
67+
68+
## look at the application:
69+
70+
[app](http://192.168.1.109/hello-python)

0 commit comments

Comments
 (0)