This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: restart-deployment-sa | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
namespace: prod | |
name: deployment-restarter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spin up an ec2, add KubernetesCluster=kubernetes tag, you can change the name but you should pass it to the kubeadm init. | |
Login to the ec2 and install them; | |
sudo apt-get update | |
sudo apt-get install docker.io -y | |
sudo apt-get install apt-transport-https curl -y | |
wget https://packages.cloud.google.com/apt/doc/apt-key.gpg | |
sudo apt-key add apt-key.gpg | |
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main" | |
sudo apt-get install kubeadm -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twint | |
import requests | |
# Lookup | |
c = twint.Config() | |
c.Username = 'riotgames' | |
c.Store_object = True | |
c.Store_object_users_list = [] | |
c.User_full = True | |
c.User_id = None |