Skip to content

Instantly share code, notes, and snippets.

Roman Gorodeckij holms

Block or report user

Report or block holms

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@holms
holms / debug.md
Last active Nov 21, 2019
ElasticSearch helm chart probereadiness problem debug
View debug.md

Using DOKS with droplet size of s-2vcpu-4gb, with own namespace and own node pool of 3 nodes.

helm get elasticsearch

REVISION: 1
RELEASED: Thu Nov 21 15:10:47 2019
CHART: elasticsearch-7.4.1
USER-SUPPLIED VALUES:
esJavaOpts: -Xmx1g -Xms1g
View bash
Name: elasticsearch-master-0
Namespace: elasticsearch
Priority: 0
Node: elasticsearch-g5dr/10.135.119.86
Start Time: Wed, 06 Nov 2019 04:21:49 +0200
Labels: app=elasticsearch-master
chart=elasticsearch
controller-revision-hash=elasticsearch-master-76c7685fb8
heritage=Tiller
release=elasticsearch
@holms
holms / chart
Last active Oct 22, 2019
elasticsearch + helm + digital ocean storage
View chart
---
# Source: elasticsearch/templates/poddisruptionbudget.yaml
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: "elasticsearch-master-pdb"
spec:
maxUnavailable: 1
selector:
View plan.md

As iskart noriu ispeti kad cia ieina beveik visa devops engineer'ingo geriausios praktikos (jos yra viesai zinomos ir istirtos per 50000 imoniu worldwide), ir cia tikrai nebus lengva suprasti. As jau taip bandziau abstraguotis ant kiek tik galejau ir tai tikrai nera lengva padaryti. Prasau klausk bet kokio termino kurio nesupranti. Cia yra metodologija ir as cia realiai atpasakoju savo darba. Ne techniniam zmogui tai pakankami didele informacine bomba.

Koks devops tikslas

Devops praktikos skirtos pagreitinti produkto gamyba, pastatyti produkta ant konvejerio. Viska automatizuoti iki maksimumo ir sumazinti palaikymo kastus iki minimo, ko maziau human factor, to geriau, nebent nori procesa pagerinti.

  • Automatinis infrastrukturos pletimo igyvendinimas naudojant debesu (CLOUD) technologija. (Nuomojames resursus tiek kiek reikia is kitu, siuo atveju is AWS, pvz serveri su tiek ramais ir vieta kiek mums reikia, ir galimybe bet kada pakeisti jo konfiguracija, ir startuoti tiek serveriu kiek mums reikia musu sp
@holms
holms / credstash.tf
Created Nov 13, 2018
Terraform credstash
View credstash.tf
Perfect free secrets manager approach
# Cli tool: https://github.com/fugue/credstash
# Setup module for DynamoDB/KMS: https://github.com/fpco/terraform-aws-foundation/tree/master/modules/credstash-setup
# Terraform credstash provider: https://github.com/sspinc/terraform-provider-credstash
@holms
holms / terraform.tf
Created Nov 13, 2018
Terraform modules depends_on workaround
View terraform.tf
# File fancy-app-module/variables.tf
variable depends_on { default = [], type = "list"}
# File my-app.tf
module "app" {
source = "modules/fancy-app-module"
@holms
holms / Dockerfile
Created Sep 7, 2018
problem with volumes
View Dockerfile
FROM bitnami/minideb-extras:stretch-r131
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
HOME="/"
# Install required system packages and dependencies
RUN install_packages libblkid1 libbsd0 libc6 libffi6 libgcc1 libglib2.0-0 libmount1 libpcre3 libselinux1 libstdc++6 libuuid1 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 zlib1g
RUN bitnami-pkg install java-1.8.181-1 --checksum 66bba4b4a2647f981339d306da796905c222057c4277a5ef045e079981a404f4
RUN bitnami-pkg unpack kafka-2.0.0-1 --checksum a5c583db6dce68f8c71e1f7bd3c927639ede08f8043cb699049041344c35449c
View gist:704cb744404a7a7a0a44362b1e2c4dbd
digitalocean_record.CNAME-etcd-master[0]: Destroying... (ID: 53624507)
digitalocean_record.CNAME-etcd-slave: Destroying... (ID: 53624508)
digitalocean_record.CNAME-etcd-master[1]: Destroying... (ID: 53624510)
digitalocean_record.CNAME-etcd-master[2]: Destroying... (ID: 53624509)
digitalocean_droplet.etcd-master[0]: Modifying... (ID: 107157586)
ipv6: "" => "true"
digitalocean_droplet.etcd-master[1]: Modifying... (ID: 107157585)
ipv6: "" => "true"
digitalocean_droplet.etcd-master[2]: Modifying... (ID: 107157588)
ipv6: "" => "true"
View gist:807ac5e05d9d49148656953d142e9927
This file has been truncated, but you can view the full file.
2018/08/26 06:50:30 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161
2018/08/26 06:50:30 [INFO] Go runtime version: go1.10.1
2018/08/26 06:50:30 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2018/08/26 06:50:30 [DEBUG] Attempting to open CLI config file: /home/holms/.terraformrc
2018/08/26 06:50:30 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/08/26 06:50:30 [INFO] CLI command args: []string{"apply"}
2018/08/26 06:50:30 [INFO] command: empty terraform config, returning nil
2018/08/26 06:50:30 [DEBUG] command: no data state file found for backend config
2018/08/26 06:50:30 [DEBUG] New state was assigned lineage "3595f58f-a92b-c55d-472b-f05d0c155d47"
@holms
holms / dark.md
Created Aug 8, 2018 — forked from a7madgamal/dark.md
Dark mode for Slack on MacOS
View dark.md
  1. Close slack
  2. Open this file /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
  3. Append this to it
document.addEventListener('DOMContentLoaded', function() {
 $.ajax({
   url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
   success: function(css) {
     $("<style></style>").appendTo('head').html(css);
You can’t perform that action at this time.