sudo dnf update -y
sudo dnf install docker -y sudo systemctl start docker sudo systemctl enable docker sudo usermod -aG docker $USER && newgrp docker
curl -sfL https://get.k3s.io | sh - sudo k3s kubectl get node alias kubectl='sudo k3s kubectl' export KUBECONFIG=/etc/rancher/k3s/k3s.yaml sudo chmod +r /etc/rancher/k3s/k3s.yaml
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml kubectl get all --namespace=argocd
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd rm argocd-linux-amd64
apiVersion: v1
kind: Service
metadata:
name: argocd-server-nodeport
namespace: argocd
spec:
type: NodePort
ports:
- port: 80
targetPort: 8080
nodePort: 30007 # Specify the nodePort you want to use, or let Kubernetes allocate one for you.
selector:
app.kubernetes.io/name: argocd-server
kubectl apply -f argocd-server-nodeport.yaml
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'
kubectl get svc -n argocd
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh
helm repo add crossplane-stable https://charts.crossplane.io/stable
helm repo update
helm install crossplane \ --namespace crossplane-system \ --create-namespace \ crossplane-stable/crossplane \ --kubeconfig $KUBECONFIG
kubectl create secret generic aws-secret \ --namespace=demo \ --from-file=creds=./aws-credentials.ini