Skip to content

Instantly share code, notes, and snippets.

View ingvarch's full-sized avatar
🍺
Not drunk enough

Igor Churmeev ingvarch

🍺
Not drunk enough
View GitHub Profile
@ingvarch
ingvarch / api-server.yaml
Created July 13, 2023 14:50 — forked from f41gh7/api-server.yaml
vm operator configuration examples
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: apiserver
namespace: monitoring-system
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
bearerTokenSecret:
key: ""
@ingvarch
ingvarch / nats-cluster-tls-kubernetes.org
Created September 9, 2022 11:41 — forked from wallyqs/nats-cluster-tls-kubernetes.org
Secure NATS Cluster in Kubernetes

Secure NATS Cluster in Kubernetes

Creating the certificates

Generating the Root CA Certs

{
    "CN": "My Custom CA",
@ingvarch
ingvarch / pritunl-backup.sh
Created May 12, 2021 06:04 — forked from aleskiontherun/pritunl-backup.sh
Backup and restore Pritunl database.
sudo service pritunl stop
mongodump -d pritunl -o pritunl-bkp
tar -czvf pritunl-bkp.tar.gz pritunl-bkp
@ingvarch
ingvarch / gist:8275a58b142ed54655538d8e0e2d73ee
Created April 16, 2021 07:42
terraform_helm_release_plan_debug
2021/04/16 10:37:45 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2021/04/16 10:37:45 [INFO] Terraform version: 0.14.9
2021/04/16 10:37:45 [INFO] Go runtime version: go1.15.6
2021/04/16 10:37:45 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/2.2.0/versions/0.14.9/terraform", "fmt"}
2021/04/16 10:37:45 [DEBUG] Attempting to open CLI config file: /Users/ingvarch/.terraformrc
2021/04/16 10:37:45 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021/04/16 10:37:45 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/04/16 10:37:45 [DEBUG] ignoring non-existing provider search directory /Users/ingvarch/.terraform.d/plugins
node {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
currentBuild.result = "SUCCESS"
try {
stage('clone project') {
checkout scm
}
def tag = sh(returnStdout: true, script: "git tag -l --contains HEAD").trim()
@ingvarch
ingvarch / jira-behing-nginx-ssl
Created July 8, 2016 06:53 — forked from jtbonhomme/jira-behing-nginx-ssl
Atlassian JIRA behind nginx + SSL
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
listen 80;
server_name jira.example.com;
access_log off;
return 301 https://$server_name$request_uri;
}
# /etc/nginx/conf.d/jira.conf
server {