Skip to content

Instantly share code, notes, and snippets.

View tbondarchuk's full-sized avatar

Taras Bondarchuk tbondarchuk

  • Lviv
  • 00:41 (UTC +03:00)
View GitHub Profile
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: self-signed
dns.alpha.kubernetes.io/external: "true"
meta.helm.sh/release-name: kube-prometheus-stack
meta.helm.sh/release-namespace: monitoring
nginx.ingress.kubernetes.io/service-upstream: "true"
creationTimestamp: "2022-03-26T18:00:23Z"
@tbondarchuk
tbondarchuk / fabric-cm.yaml
Created May 15, 2022 17:21
Fabric ECert attempt with cert-manager
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: org0-ca-cert-issuer
spec:
isCA: true
privateKey:
algorithm: ECDSA
size: 256
@tbondarchuk
tbondarchuk / vector-manifests-alb-s3-logs.yaml
Last active November 16, 2021 18:56
Vector manifests for ALB S3 Logs
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vector
spec:
replicas: 1
selector:
template:
metadata:
@tbondarchuk
tbondarchuk / vector-alb-logs-s3.yaml
Created November 16, 2021 18:48
Vector values for ALB S3 Logs
role: "Stateless-Aggregator"
replicas: 1
serviceAccount:
create: true
annotations:
eks.amazonaws.com/role-arn: <ARN>
env:
@tbondarchuk
tbondarchuk / get_macs.yml
Last active February 12, 2021 15:04
Ansible: Get mac addresses of all interfaces except local
---
- hosts: all
tasks:
- name: Get mac addresses of all interfaces except local
debug:
msg: "{{ ansible_interfaces | difference(['lo']) | map('regex_replace', '^(.*)$', 'ansible_\\1' ) | map('extract', hostvars[inventory_hostname], 'macaddress') | list }}"
@tbondarchuk
tbondarchuk / gather_delegation.yml
Created September 29, 2016 09:37
ansible gather facts from another host
---
## works only on ansible >= 2.0
###### inventory:
# [group1]
# test-01
# [group2]
# test-02
- hosts: group2
tasks:
@tbondarchuk
tbondarchuk / python2.7 install from sources on CentOS
Created July 3, 2015 08:09
python2.7 install from sources on CentOS
yum groupinstall "Development tools"
yum install bzip2-devel openssl-devel ncurses-devel zlib-devel
cd /usr/local/src/
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar xzvf Python-2.7.10.tgz
cd Python-2.7.10/
./configure --prefix=/usr/local
make && make altinstall
/usr/local/bin/python2.7 -m ensurepip
vi_cv_path_python=/usr/local/bin/python2.7 ./configure --enable-pythoninterp --with-features=huge --enable-multibyte --enable-rubyinterp --enable-perlinterp --prefix=/usr/local/