This file contains hidden or 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
{ | |
"Version": "2012–10–17", | |
"Statement": [ | |
{ | |
"Sid": "DelegateS3Access", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<AWS-Account-ID>:role/SourceCassandraClusterRole" | |
}, | |
"Action": [ |
This file contains hidden or 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
#!/bin/bash | |
set -euif [[ -z "$1" ]]; then | |
info "Please provide a keyspace" | |
exit 1 | |
fiKEYSPACE="$1" | |
result=$(nodetool snapshot "${KEYSPACE}") | |
if [[ $? -ne 0 ]]; then | |
echo "Error while making snapshot" | |
exit 1 | |
fitimestamp=$(echo "$result" | awk '/Snapshot directory: / { print $3 }')mkdir -p /tmp/backupfor path in $(find "/var/lib/cassandra/data/${KEYSPACE}" -name $timestamp); do |
This file contains hidden or 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
grep -v "rem_address" /proc/net/tcp | awk 'function hextodec(str,ret,n,i,k,c){ | |
ret = 0 | |
n = length(str) | |
for (i = 1; i <= n; i++) { | |
c = tolower(substr(str, i, 1)) | |
k = index("123456789abcdef", c) | |
ret = ret * 16 + k | |
} | |
return ret | |
} {x=hextodec(substr($2,index($2,":")-2,2)); for (i=5; i>0; i-=2) x = x"."hextodec(substr($2,i,2))}{print x":"hextodec(substr($2,index($2,":")+1,4))}' |
This file contains hidden or 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
$ cat /proc/net/tcp | |
sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode | |
0: 3500007F:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 101 0 32207 1 0000000000000000 100 0 0 10 5 | |
1: 00000000:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 33115 1 0000000000000000 100 0 0 10 0 | |
2: 0100007F:0277 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 2554402 1 0000000000000000 100 0 0 10 0 |
This file contains hidden or 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
# | |
# ---- Docker Multi-stage Builds: Base ---- # | |
# | |
FROM docker.io/library/ubuntu:21.04 AS base | |
FROM base AS build-base | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update \ | |
&& apt-get install -y apt-utils \ |
This file contains hidden or 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
$ helm diff upgrade argocd-shs argo/argo-cd --values argocd/argocd-deployment/argocd-shs/argocd-values.yaml --version 3.2.5 --namespace argocd | |
Error: Failed to render chart: exit status 1: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "servicePort" in io.k8s.api.networking.v1.IngressBackend] | |
Error: plugin "diff" exited with error |
This file contains hidden or 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
- backend: | |
serviceName: argocd-shs-server | |
servicePort: http |
This file contains hidden or 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
extraPaths: | |
- backend: | |
service: | |
name: argocd-shs-server | |
port: | |
name: http |
This file contains hidden or 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
--- | |
include: | |
- local: /jobs/terraform-prepare.yml | |
image: 111111111111.dkr.ecr.us-east-1.amazonaws.com/devops/iac/terraform:${IMAGE_TAG} | |
variables: | |
TF_ROOT: ${CI_PROJECT_DIR}/${TF_ENV_PATH} # The relative path to the root directory of the Terraform project | |
PLAN: plan.cache | |
PLAN_JSON: plan.json |
This file contains hidden or 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
.aws-assume-role: | |
script: | |
- | | |
#!/bin/bash | |
set -xe | |
if [[ ! -z $AWS_ACCOUNT_ID && ! -z $AWS_IAM_ROLE && ! -z $AWS_REGION ]] | |
then | |
echo 'Assuming role...' | |
session_name="${CI_COMMIT_SHORT_SHA}-`date +%Y%m%d`" |