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
sonarqube-check: | |
stage: Code Quality Check | |
image: git.yourserver.com:5050/finservice/deployment/docker-images/gradle:7.6.3-jdk | |
tags: | |
- docker | |
variables: | |
GRADLE_OPTS: "-Xmx1024m" | |
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache | |
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task | |
cache: |
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. 10.204.11.181 | |
2. 10.204.11.182 | |
3. 10.204.11.183 | |
wget https://downloads.apache.org/kafka/3.6.1/kafka_2.13-3.6.1.tgz | |
wget https://dlcdn.apache.org/zookeeper/zookeeper-3.9.1/apache-zookeeper-3.9.1-bin.tar.gz | |
tar xvzf kafka_2.13-3.6.1.tgz |
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
=======================================================systemd============================================================== | |
[Unit] | |
Description=MinIO | |
Documentation=https://docs.min.io | |
Wants=network-online.target | |
After=network-online.target | |
AssertFileIsExecutable=/usr/local/bin/minio | |
[Service] | |
WorkingDirectory=/usr/local/bin/ |
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
example of HTTP3 on nginx | |
============================================================== | |
server { | |
listen 443 quic reuseport; | |
listen 443 ssl; | |
server_name test.mydomain.kz; | |
#access_log /var/log/nginx/host.access.log main; | |
ssl_certificate /etc/letsencrypt/live/test.mydomain.kz/fullchain.pem; |
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
server { | |
listen jira.test.kz:80; | |
server_name jira.test.kz; | |
listen 443 default ssl; | |
ssl_certificate /etc/ssl/star-2024/bundle.crt; | |
ssl_certificate_key /etc//ssl/star-2024/private.key; | |
ssl_session_timeout 5m; | |
ssl_prefer_server_ciphers on; |
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
Table: Process and Load Monitoring Utilities | |
top - Process activity, dynamically updated procps | |
uptime - How long the system is running and the average load procps | |
ps - Detailed information about processes procps | |
pstree - A tree of processes and their connections psmisc (or pstree) | |
mpstat - Multiple processor usage sysstat | |
iostat - CPU utilization and I/O statistics sysstat | |
sar - Display and collect information about system activity sysstat | |
numastat - Information about NUMA (Non-Uniform Memory Architecture) numactl |
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
Prepartion: | |
1. 192.168.1.160 - nginx external | |
2. 192.168.1.164 - worker node, also as nginx ingress | |
k8s: v1.26.5 | |
imperative method: | |
kubectl create deploy console --containerPort=9000 --image=quay.io/openshift/origin-console:4.13 |
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
ansible-galaxy init yourrole | |
sudo ansible all -m shell -a 'shutdown -h now' -u nurlan -bkK --become-user=root | |
=========================================================================================== | |
ansible [core 2.12.5] | |
если ансибл устанавливался через pip3 install то конфиги должны быть тут: | |
ANSIBLE_CONFIG (environment variable if set) | |
ansible.cfg (in the current directory) |
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
dnf install https://dl.min.io/server/minio/release/linux-amd64/minio-20230721211244.0.0.x86_64.rpm | |
kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email> | |
[Unit] | |
Description=MinIO | |
Documentation=https://docs.min.io | |
Wants=network-online.target | |
After=network-online.target |
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
===========================================================Ubuntu 20.04 - kubernetes 1.27======================================================== | |
export OS=xUbuntu_20.04 | |
export VERSION=1.27 | |
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list | |
echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/$VERSION/$OS/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable:cri-o:$VERSION.list | |
curl -L https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:$VERSION/$OS/Release.key | apt-key add - | |
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/Release.key | apt-key add - |