Skip to content

Instantly share code, notes, and snippets.

View dmitry-mightydevops's full-sized avatar

Dmitry Semenov dmitry-mightydevops

View GitHub Profile
@dmitry-mightydevops
dmitry-mightydevops / loki-additional-rules.yaml
Created November 7, 2023 21:12
example loki recording rule and alert configmap
apiVersion: v1
kind: ConfigMap
metadata:
name: loki-additional-rules
annotations:
argocd.argoproj.io/compare-options: IgnoreExtraneous
labels:
loki_rule: 'true'
data:
additional-loki-rules.yaml: |
@dmitry-mightydevops
dmitry-mightydevops / node_shell.sh
Created April 29, 2023 17:42
get inside aws eks node
usage:
node_shell ip-10-110-9-37.us-west-2.compute.internal
script:
#!/bin/sh
set -x
node=${1}
nodeName=$(kubectl get node ${node} -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}')

Summary

Test Task

You need to have https://kustomize.io/ installed (part of your onboarding plan)

  • write bash script that accepts unlimited number of arguments.
  • each argument means the name of the repository.
  • generate a valid ed25519 ssh key for each of the repository. Store the keys in repos/ folder
    • each key should have the following suffix added to the file -deploy-key.pem, for example iss-kubernetes-aws-deploy-key.pem
@dmitry-mightydevops
dmitry-mightydevops / crypt.md
Last active March 3, 2023 04:54
expected encryption
➜ lsblk --fs

NAME                                          FSTYPE      FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1                                                                                                                      
├─nvme0n1p1                                   vfat        FAT16 EFI      51DA-BFD6                             443.9M     9% /boot/efi
├─nvme0n1p2                                   ext4        1.0   BOOT     52c4aca3-4024-47e4-aaec-83d11711bc7c  636.3M    28% /boot
└─nvme0n1p3                                   crypto_LUKS 2              5533a956-45af-4d8e-b903-fa6f2f0cf206                
2022-11-11 22:35:07 request="GET /assets/sounds/bet.mp3 HTTP/2.0" upstream_response_length="8146" bytes_sent="8372"
2022-11-11 22:35:07 request="GET /assets/sounds/bet.mp3 HTTP/2.0" upstream_response_length="2" bytes_sent="204"
2022-11-11 22:34:43 request="GET /assets/sounds/bet.mp3 HTTP/2.0" upstream_response_length="8146" bytes_sent="8372"
2022-11-11 22:34:42 request="GET /assets/sounds/bet.mp3 HTTP/2.0" upstream_response_length="2" bytes_sent="204"
```
<ul class="GLATOE0E3E">
<li id="chozen_container__0_chzn_g_0" class="GLATOE0O3E" style="display: none;">Popular</li>
<li id="chozen_container__0_chzn_g_1" class="GLATOE0O3E" style="display: none;">Other</li>
<li id="chozen_container__0_chzn_g_2" class="GLATOE0O3E" style="display: list-item;">Popular</li>
<li id="chozen_container__0_chzn_o_3" class="GLATOE0J2E GLATOE0B4E GLATOE0N3E GLATOE0P3E" style="">.com - $12.00</li>
<li id="chozen_container__0_chzn_o_4" class="GLATOE0J2E GLATOE0N3E" style="">.net - $11.00</li>
<li id="chozen_container__0_chzn_o_5" class="GLATOE0J2E GLATOE0N3E" style="">.org - $12.00</li>
<li id="chozen_container__0_chzn_o_6" class="GLATOE0J2E GLATOE0N3E" style="">.com.au - $15.00</li>
<li id="chozen_container__0_chzn_o_7" class="GLATOE0J2E GLATOE0N3E" style="">.co.uk - $9.00</li>
nginx.conf
php-fpm.conf
www.conf
php.ini
phpinfo
phpinfo.php
Procfile
procfile
Makefile
project.toml
@dmitry-mightydevops
dmitry-mightydevops / request-new-env.md
Last active July 13, 2022 22:45
request new client environment

This doc contains template that you (PM/TM) should paste in the JIRA task and answer inline.

questionnaire

are we creating staging and prod OR only the prod env?


do we have the SLA contract for this client? (yes/no)