Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions argocd-certificate-refresh/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:20.04
RUN apt update && apt install curl git -y
WORKDIR /app
COPY argocd.sh .
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.15.1/bin/linux/amd64/kubectl
RUN chmod u+x kubectl && mv kubectl /bin/kubectl
CMD ["./argocd.sh"]
1 change: 1 addition & 0 deletions argocd-certificate-refresh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Script to refresh the certificate of argocd.
9 changes: 9 additions & 0 deletions argocd-certificate-refresh/argocd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

kubectl get secret argocd-secret -n devtroncd -o yaml > argocd-secret.yaml
sed -i '6,7d' argocd-secret.yaml
kubectl delete secret argocd-secret -n devtroncd --ignore-not-found
kubectl apply -f argocd-secret.yaml
kubectl delete pods -n devtroncd -l app.kubernetes.io/name=argocd-server
sleep 15
kubectl delete pods -n devtroncd -l component=devtron