Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Hey, searching job!

Thomas Decaux ebuildy

🎯
Hey, searching job!
  • DataTok
  • South of France, Sanary sur mer
  • Twitter @ebuildy
View GitHub Profile
View config.sh
spark.executor.extraJavaOptions: -Dorg.xerial.snappy.use.systemlib=true -Dorg.xerial.snappy.lib.path=/usr/lib/libsnappyjava.so
View create_transform.json
PUT _transform/test
{
"source": {
"index": [
"apm-*-span"
],
"query": {
"bool": {
"filter": [
{
View create aliases
POST _aliases
{
"actions": [
{
"remove": {
"index": "consolidation-ctr-v1",
"alias": "consolidation-ctr"
}
},
{
@ebuildy
ebuildy / base.yaml
Last active Dec 31, 2021
Ansible + argoCD API recipes
View base.yaml
---
- tags: ["always"]
set_fact:
argocd_url: http://localhost:2369
api_headers: &api_headers
Authorization: "Bearer {{ lookup('env', 'ARGO_TOKEN') }}"
@ebuildy
ebuildy / update_labels_bulk.sh
Created Dec 28, 2021
Update kubernetes pod labels, bulk mode
View update_labels_bulk.sh
# get pods to update
kubectl get pods --selector=elastic.org/elasticsearch-cluster=hot --output=jsonpath={.items..metadata.name}
View chart.yaml
apiVersion: v2
name: my-elasticsearch
type: application
version: v0.0.1
dependencies:
- name: elasticsearch
repository: https://helm.datatok.io
version: 7.16.1-4
- name: networkpolicy
repository: https://ebuildy.github.io/k8s-as-helm/
@ebuildy
ebuildy / ansible_task.yaml
Last active Jan 7, 2022
Transform data with Ansible / templating
View ansible_task.yaml
---
- include_vars:
file: "{{ item }}"
name: "__content__"
with_fileglob:
- "/resources/*.yaml"
register: script_files_read
- set_fact:
@ebuildy
ebuildy / kustomization.yaml
Created Sep 8, 2021
Customize and deploy rabbitMQ messaging topology kubernetes operator
View kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rabbitmq-system
resources:
- ./tmp/all.yaml
patchesStrategicMerge:
- |-
@ebuildy
ebuildy / deployment.yaml
Last active Aug 2, 2021
add user kubernetes when no root
View deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata: {}
spec:
template:
metadata: {}
spec:
volumes:
- name: etc-hack
emptyDir: {}
View elasticsearch.log
{"type": "server", "timestamp": "2021-07-07T07:33:02,722Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "djobi-metrics", "node.name": "djobi-metrics-es-0", "message": "version[7.13.2], pid[6], build[default/docker/4d960a0733be83dd2543ca018aa4ddc42e956800/2021-06-10T21:01:55.251515791Z], OS[Linux/4.15.0-121-generic/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/16/16+36]" }
{"type": "server", "timestamp": "2021-07-07T07:33:02,725Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "djobi-metrics", "node.name": "djobi-metrics-es-0", "message": "JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]" }
{"type": "server", "timestamp": "2021-07-07T07:33:02,725Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "djobi-metrics", "node.name": "djobi-metrics-es-0", "message": "JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.no