Forwarded from Linuxor ?
بستگی به پیچیدگی و تیم پروژتون باید تصمیم بگیرید از چه استراتژی برنچینگ Git استفاده کنید
این مقاله اومده 6 نوع استراتژی برنچینگ Git برای DevOps همراه با جوانب مثبت و منفی اونهارو نوشته
https://dev.to/juniourrau/6-types-of-git-branching-strategy-g54
@Linuxor
این مقاله اومده 6 نوع استراتژی برنچینگ Git برای DevOps همراه با جوانب مثبت و منفی اونهارو نوشته
https://dev.to/juniourrau/6-types-of-git-branching-strategy-g54
@Linuxor
❤3
🚀🚀🚀
کد تخفیف اختصاصی کانال دوآپس تبریز برای خرید از ابرآراز (ریجن تبریز هم دارن)
کد تخفیف:tabrizdevs
برای خرید سرویسهای ابری ابرآراز کافیه وارد لینک زیر بشی و از کد تخفیفت استفاده کنی.
https://arazcloud.com
کد تخفیف اختصاصی کانال دوآپس تبریز برای خرید از ابرآراز (ریجن تبریز هم دارن)
کد تخفیف:
برای خرید سرویسهای ابری ابرآراز کافیه وارد لینک زیر بشی و از کد تخفیفت استفاده کنی.
https://arazcloud.com
🙏1
NGINX Prometheus Exporter
[Unit]
Denoscription=NGINX Prometheus Exporter
After=network.target
[Service]
Type=simple
User=nginx_exporter
Group=nginx_exporter
Type=simple
ExecStart=/usr/local/bin/nginx-prometheus-exporter \
-web.listen-address=0.0.0.0:9113 \
-nginx.scrape-uri http://IP_hostnginx:9113/metrics
SyslogIdentifier=nginx_prometheus_exporter
Restart=always
[Install]
WantedBy=multi-user.target
👍1
keepalived master-backup
check_nginx.sh
#backup/keepalived.conf
global_defs {
router_id backup_node
}
vrrp_noscript check_nginx {
noscript "/etc/keepalived/check_nginx.sh"
interval 1
weight -20
fall 3
}
vrrp_instance VI_1 {
state BACKUP
interface eth1
virtual_router_id 50
mcast_src_ip 192.168.33.11
priority 90
advert_int 1
track_noscript {
check_nginx
}
virtual_ipaddress {
192.168.33.50/24
}
}
#master/keepalived.conf
global_defs {
router_id master_node # name of this node
}
vrrp_noscript check_nginx {
noscript "/etc/keepalived/check_nginx.sh" # success when noscript returns 0; otherwise failed
interval 1 # call noscript interval 1 second
weight -20
fall 3 # if failed for 3 times, set priority += weight, which means 100-20=80 here
}
vrrp_instance VI_1 {
state MASTER
interface eth1 # binding virtual IP to
virtual_router_id 50 # must be identical to backup
mcast_src_ip 192.168.33.10 # IP of this node
priority 100 # master 100-20=80 must be less than backup priority 90
advert_int 1 # advert interval 1 second
track_noscript {
check_nginx
}
virtual_ipaddress {
192.168.33.50/24 # virtual IP
}
}
check_nginx.sh
#!/bin/bash
if [ $(ps -C nginx --no-headers | wc -l) -eq 0 ]; then
exit 1
fi
keepalived master-master
#master1
global_defs {
router_id master_node_1
}
vrrp_noscript check_nginx {
noscript "/etc/keepalived/check_nginx.sh"
interval 1
weight -20
fall 3
}
vrrp_instance VI_1 {
state MASTER
interface eth1
virtual_router_id 51
mcast_src_ip 192.168.33.10
priority 100
advert_int 1
track_noscript {
check_nginx
}
virtual_ipaddress {
192.168.33.51/24
}
}
vrrp_instance VI_2 {
state BACKUP
interface eth1
virtual_router_id 52
mcast_src_ip 192.168.33.10
priority 90
advert_int 1
track_noscript {
check_nginx
}
virtual_ipaddress {
192.168.33.52/24
}
}
#master2
global_defs {
router_id master_node_2
}
vrrp_noscript check_nginx {
noscript "/etc/keepalived/check_nginx.sh"
interval 1
weight -20
fall 3
}
vrrp_instance VI_1 {
state BACKUP
interface eth1
virtual_router_id 51
mcast_src_ip 192.168.33.11
priority 90
advert_int 1
track_noscript {
check_nginx
}
virtual_ipaddress {
192.168.33.51/24
}
}
vrrp_instance VI_2 {
state MASTER
interface eth1
virtual_router_id 52
mcast_src_ip 192.168.33.11
priority 100
advert_int 1
track_noscript {
check_nginx
}
virtual_ipaddress {
192.168.33.52/24
}
}
https://kubernetes.io/docs/concepts/policy/resource-quotas/
https://kubernetes.io/docs/concepts/policy/limit-range/
https://kubernetes.io/docs/concepts/policy/limit-range/
Kubernetes
Resource Quotas
When several users or teams share a cluster with a fixed number of nodes, there is a concern that one team could use more than its fair share of resources.
Resource quotas are a tool for administrators to address this concern.
A resource quota, defined by…
Resource quotas are a tool for administrators to address this concern.
A resource quota, defined by…
https://postman-echo.com/status/200
https://postman-echo.com/basic-auth
postman:password