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
| 1. increase partition in UTM edit->drives->Resize(increase) input size ->save | |
| with command-line( install qemu-img) | |
| 2. qemu-img resize [/path/file location] +[size_to_increase]G | |
| turn on vm and login | |
| #fdisk -l [check disk root partition] | |
| #sudo parted /dev/sda | |
| (parted) print (make sure the disk size increase) | |
| (parted) resizepart 1 100% (use all unallocated disk) | |
| (parted) quit | |
| 3.resize disk root partition with xfs_growfs |
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
| ##install basic package## | |
| sudo apt update | |
| sudo apt install software-properties-common | |
| ## add repo PPA to server ## | |
| sudo add-apt-repository ppa:qpdf/qpdf | |
| sudo apt update | |
| sudo apt install qpdf |
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
| ##install nginx## | |
| sudo apt-get update | |
| sudo apt-get install nginx -y | |
| sudo apt-get install -y curl gnupg2 ca-certificates lsb-release | |
| sudo curl -fsSL http://nginx.org/keys/nginx_signing.key | gpg --dearmor -o /usr/share/keyrings/nginx-keyring.gpg | |
| sudo echo "deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] http://nginx.org/packages/debian `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list | |
| sudo apt-get update | |
| sudo apt-get install nginx -y | |
| sudo systemctl enable nginx | |
| sudo systemctl start nginx && sudo systemctl status nginx |
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
| kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yaml | |
| #create user admin dashboard service-account.yaml | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: admin | |
| namespace: kube-system | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRoleBinding |
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
| ##install prometheus grafana node exporter in debian/ubuntu | |
| apt update | |
| sudo useradd --system --no-create-home --shell /bin/false prometheus | |
| wget https://github.com/prometheus/prometheus/releases/download/v2.38.0/prometheus-2.38.0.linux-amd64.tar.gz | |
| tar -xvf prometheus-2.38.0.linux-amd64.tar.gz | |
| sudo mkdir -p /data /etc/prometheus | |
| cd prometheus-2.38.0.linux-amd64 | |
| sudo mv prometheus promtool /usr/local/bin/ | |
| sudo mv consoles/ console_libraries/ /etc/prometheus/ | |
| sudo chown -R prometheus:prometheus /etc/prometheus/ /data/ |
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
| nginx -v | |
| apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y | |
| curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null | |
| touch /etc/apt/sources.list.d/nginx.list | |
| echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" |tee /etc/apt/sources.list.d/nginx.list | |
| nginx -t | |
| apt update | |
| ##----check version available for upgrade----- | |
| apt list nginx -a | |
| Listing... Done |
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
| first install apache with command below | |
| #yum install http -y | |
| #systemctl enable httpd | |
| then configure http.conf | |
| #vi /etc/httpd/conf/httpd.conf | |
| add this configuration in the lastline | |
| <VirtualHost ip_address_server:80> | |
| DocumentRoot "/var/www/html/webserver" | |
| ServerName www.local.com | |
| </VirtualHost> |
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
| this show how to solve problem error after install minikube on mac | |
| install minikube in mac Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64 | |
| $brew install minikube | |
| $minikube start | |
| after install finish then we start minikube service show error below | |
| Exiting due to DRV_NOT_DETECTED: No possible driver was detected. Try specifying --driver, or see https://minikube.sigs.k8s.io/docs/start/ | |
| then follow this step to solve the problem |
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
| how to check pod permission denied NFS directory | |
| example we user nginx pod | |
| -check NFS server permission directory make sure NFS permission directory using | |
| nobody:nobody permission also can read write | |
| - /etc/exports configuration (/mnt/data *(rw,sync,root_squash) | |
| - mounting storage on pod and testing create file |
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
| since satellite no longer use katello-agent now we can use this step to integrate with satellite | |
| --- | |
| - name: download CA certificate | |
| yum: | |
| validate_certs: no | |
| disable_gpg_check: yes | |
| name: https://<ip satellite>/pub/katello-ca-consumer-latest.noarch.rpm | |
| state: present |
NewerOlder