View send.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST apm-*-span/_search | |
{ | |
"size": 0, | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"range": { | |
"@timestamp": { | |
"gte": "2023-02-16T13:00:00.540Z" |
View impl-workflow.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: djobi-workflow- | |
spec: | |
entrypoint: djobi | |
serviceAccountName: workflow | |
ttlStrategy: |
View simple-pyspark-argo-workflow.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: pyspark- | |
spec: | |
entrypoint: pyspark | |
templates: | |
- name: pyspark | |
inputs: |
View s3-delete-keys.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async deleteKeys(keys: string[]): Promise<any[]> { | |
function spliceIntoChunks(arr: any[], chunkSize: number) { | |
const res = []; | |
while (arr.length > 0) { | |
const chunk = arr.splice(0, chunkSize); | |
res.push(chunk); | |
} | |
return res; | |
} |
View config.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spark.executor.extraJavaOptions: -Dorg.xerial.snappy.use.systemlib=true -Dorg.xerial.snappy.lib.path=/usr/lib/libsnappyjava.so |
View create_transform.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT _transform/test | |
{ | |
"source": { | |
"index": [ | |
"apm-*-span" | |
], | |
"query": { | |
"bool": { | |
"filter": [ | |
{ |
View create aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST _aliases | |
{ | |
"actions": [ | |
{ | |
"remove": { | |
"index": "consolidation-ctr-v1", | |
"alias": "consolidation-ctr" | |
} | |
}, | |
{ |
View base.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- tags: ["always"] | |
set_fact: | |
argocd_url: http://localhost:2369 | |
api_headers: &api_headers | |
Authorization: "Bearer {{ lookup('env', 'ARGO_TOKEN') }}" |
View update_labels_bulk.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get pods to update | |
kubectl get pods --selector=elastic.org/elasticsearch-cluster=hot --output=jsonpath={.items..metadata.name} | |
View chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
NewerOlder