- Create an empty repo in BitBucket
git clone --bare git@github.com:user/repo.gitcd repo.gitgit push --mirror git@bitbucket.org:user/repo.git
This file contains hidden or 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: external-dns | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRole | |
| metadata: | |
| name: external-dns | |
| rules: |
This file contains hidden or 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
| plugins: | |
| Devops-continens/Prow-tutorial: | |
| - size | |
| - welcome | |
| - owners-label | |
| - wip | |
| - cat # /meow | |
| - dog # /woof | |
| - pony # /pony | |
| - yuks # /joke |
This file contains hidden or 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
| # define your server name and upstream IP:PORT | |
| upstream jenkins { | |
| keepalive 32; # keepalive connections | |
| server 192.168.122.250:8080; # jenkins ip and port | |
| } | |
| server { | |
| listen 80; | |
| listen [::]:80; |
This file contains hidden or 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
| # for google jenkins package | |
| helm repo add stable https://kubernetes-charts.storage.googleapis.com | |
| helm repo update | |
| helm install jenkins stable/jenkins | |
| kubectl get secret --namespace default jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode | |
| edit service/jenkins | |
| # for bitnami jenkins package | |
| helm install jenkins bitnami/jenkins | |
| kubectl get secret --namespace default jenkins -o jsonpath="{.data.jenkins-password}" | base64 --decode |
This file contains hidden or 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
| sudo apt install snapd # only if snap isn't installed already | |
| sudo snap install microk8s --classic | |
| sudo usermod -a -G microk8s rkamradt # log out and back in to take effect | |
| microk8s.status --wait-ready | |
| microk8s.enable cilium dns metallb registry storage |
This file contains hidden or 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
| sudo apt install mailutils # choose internet site and your domain name | |
| sudo vi /etc/postfix/main.cf | |
| *** begin main.cf ****** | |
| # TLS parameters | |
| smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem | |
| smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key | |
| smtpd_tls_security_level=may | |
| smtp_tls_CApath=/etc/ssl/certs | |
| smtp_tls_security_level=encrypt |
This file contains hidden or 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
| egrep -c '(vmx|svm)' /proc/cpuinfo # to check if compatible with virtualization | |
| sudo apt install cpu-checker | |
| sudo kvm-ok # check if kvm optimizations are enabled | |
| sudo apt update | |
| sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst | |
| sudo adduser `id -un` libvirt # logout and log back in |
This file contains hidden or 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
| ls / # make sure your swapfile is called swapfile | |
| sudo swapoff -v /swapfile | |
| sudo vi /etc/fstab # remove the line for the swapfile | |
| sudo rm /swapfile |
This file contains hidden or 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
| virt-install --name vm1 --ram=8192 --disk size=10 --vcpus 1 --os-type linux --os-variant ubuntu18.04 --graphics none --location 'http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/' --extra-args "console=tty0 console=ttyS0,115200n8" | |
| # When prompted, use the vm name for the host name, and be sure to add openssh when asked for software to pre-install | |
| # otherwise take defaults or most reasonable options. Follow install instructions till reboot, then ^] | |
| virsh domifaddr vm1 # get ip address | |
| ssh-copy-id rkamradt@192.168.122.95 # use ip address from previous step |