Giter VIP home page Giter VIP logo

argocdtest's Introduction

INSTALL ARGO CD WITH k3s CLUSTER - AWS

MASTER

aws ec2 run-instances --image-id ami-0b0ea68c435eb488d --count 1 --instance-type t3a.medium --key-name key-pem-aws --security-group-ids sg-id-aws --subnet-id subnet-id-aws --user-data file://k3s.sh --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=rancher-master}]' 'ResourceType=volume,Tags=[{Key=Name,Value=rancher-master}]'

Type :wq!

Enter master instancce

ssh -i key-pem-aws.pem ubuntu@INSTANCE_MASTER_PUBLIC_IP

Remove error if connect with MAC (WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED)

ssh-keygen -R INSTANCE_MASTER_PUBLIC_IP

Get token:

sudo su cat /var/lib/rancher/k3s/server/node-token

Type: K105e94c233ac7f06c5664ec232393bf2adc84fe4f117429796386d640b2cdd8414::server:bcb2323d5cf31b513ea7dfedba3e33da

Get the token and ip from the master and make the string to run in the k3s-node.sh file Get private IP from master instance and paste in k3s-node.sh

k3s-node.sh curl -sfL https://get.k3s.io | K3S_URL=https://PRIVATE_MASTER_IP:6443 K3S_TOKEN=TOKEN_FROM_MASTER sh -

NODE X (count = 1 number of nodes/instances to create)

aws ec2 run-instances --image-id ami-0b0ea68c435eb488d --count 1 --instance-type t3a.medium --key-name key-pem-aws --security-group-ids sg-id-aws --subnet-id subnet-id-aws --user-data file://k3s-node.sh --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=rancher-node1}]' 'ResourceType=volume,Tags=[{Key=Name,Value=rancher-node1}]'

Entrar no node=1

ssh -i key-pem-aws.pem ubuntu@INSTANCE_NODE1_PUBLIC_IP

Install argoccd

sudo su kubectl create namespace argocd kubectl get namespaces kubectl apply -n argocd -f https://raw.githubusercontent.com/investeusa/argocdtest/main/install.yaml kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}' kubectl port-forward svc/argocd-server -n argocd 8080:444 connect ssh another tab sudo su kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" copy password

Browser: http://PUBLIC_MASTER_IP:82 Login: admin, password copyed

argocdtest's People

Contributors

investeusa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.