Skip to content

Instantly share code, notes, and snippets.

View Nurlan199206's full-sized avatar
🎯
Focusing

Nurlan199206

🎯
Focusing
View GitHub Profile
@Nurlan199206
Nurlan199206 / sonarqube quality gate comment on merge requests
Created February 1, 2024 05:04
sonarqube quality gate comment on merge requests
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:
@Nurlan199206
Nurlan199206 / KAFKA & ZOOKEEPER cluster
Last active January 21, 2024 06:44
KAFKA & ZOOKEEPER cluster
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
@Nurlan199206
Nurlan199206 / minio standalone
Last active March 19, 2025 06:52
minio standalone
=======================================================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/
@Nurlan199206
Nurlan199206 / nginx-http3
Last active December 22, 2023 16:30
nginx-http3
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;
@Nurlan199206
Nurlan199206 / gist:965af85f868132ccf6890bb7e3338575
Created December 13, 2023 06:59
jira8 nginx reverse proxy
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;
@Nurlan199206
Nurlan199206 / troubleshooting utilities
Last active December 3, 2023 07:14
troubleshooting utilities
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
@Nurlan199206
Nurlan199206 / gist:acd4f43fbec7c2b9a915b967adc9fda5
Last active July 27, 2024 08:24
OpenShift console for Kubernetes Vanilla
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
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)
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
@Nurlan199206
Nurlan199206 / installation kubernetes 1.27
Created July 25, 2023 15:59
installation kubernetes 1.27
===========================================================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 -