Get deployment to a yaml format
May 3rd, 2022 by ayadkubectl get deployments.apps blue -o yaml > blue.yaml
kubectl get deployments.apps blue -o yaml > blue.yaml
kubectl scale deployment blue –replicas=6
kubectl create deployment blue –image=nginx
netstat -tn 2>/dev/null | grep :3306 | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -nr | head
==============
CREATE USER ‘aya_srv’@10.4.1.75 IDENTIFIED BY ‘eweR43rddf’;
GRANT ALL PRIVILEGES ON aya_tv
.* TO ‘aya_srv’@10.9.9.5;
CREATE USER ‘aya_srv’@10.9.9.10 IDENTIFIED BY ‘eweR43rddf’;
GRANT ALL PRIVILEGES ON aya_tv
.* TO ‘aya_srv’@10.9.9.10;
FLUSH PRIVILEGES;
===============
create user ‘db’user’@’10.10.5.5’ identified by ‘ ********** ’ ;
grant all privileges on `dyname`.* to ‘dbuser’@’10.10.5.5’;
su – postgres/usr/pgsql-14/bin/pg_ctl promote -D /var/lib/pgsql/14/data/
select now()-pg_last_xact_replay_timestamp();