flux-cd/
├── flux-googlechat-alert
│ ├── alert.yaml # Alert Definition, i.e type of events to filter and information about alert
│ ├── provider.yaml # Provider Definition, i.e, where alerts will be forwarded.
│ └── secret.yaml # it holds the url to the google chat space.
├── git-repo
│ ├── git-repo.yaml # Git repository definition. i.e, url of repository, and branch name etc
│ ├── kustomzation.yaml # It has info about which Git repository to use, like the one that was created by git-repo.yaml, and Folder to monitor. It detects changes and
│ │ # deploy them on cluster.
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
#!/bin/bash | |
# | |
# Automatically adds branch name and branch description to every commit message. | |
# Modified from the gist here https://gist.github.com/bartoszmajsak/1396344 | |
# | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
RED="\033[1;31m" | |
GREEN="\033[1;32m" |
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
{ | |
"Comment": "Migrate RDS snapshots for disaster recovery", | |
"StartAt": "MigrateRDSSnapshots", | |
"States": { | |
"MigrateRDSSnapshots": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:XX-XXXX-2:XXXXXX:function:migrate-rds-snapshots", | |
"Retry": [ | |
{ | |
"ErrorEquals": [ |
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
import boto3 | |
def create_snapshots(context): | |
""" | |
It will be used to create RDS snaphots. | |
Input args: | |
context: [obj] Use it to check remaining lambda execution time. | |
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
{ "Shards": [ | |
{ | |
"ShardId": "shardId-000000000000", | |
"HashKeyRange": { | |
"StartingHashKey": "0", | |
"EndingHashKey": "170141183460469231371588410571" | |
}, | |
"SequenceNumberRange": { | |
"StartingSequenceNumber": "496103516369698317099491240188243335841720557371394" | |
} |
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
input { | |
file { | |
path => "/home/irtiza/data.csv" | |
start_position => "beginning" | |
sincedb_path => "/dev/null" | |
} | |
} | |
filter { | |
csv { |
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
input { | |
file { | |
path => "/home/irtiza/data.csv" | |
start_position => "beginning" | |
sincedb_path => "/dev/null" | |
} | |
} | |
filter { |
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
--- | |
- hosts: nodes | |
become: true | |
tasks: | |
- name: Create a linux user devops | |
command: useradd devops | |
ignore_errors: yes # ignore is true because i was testing the system and if the user already exists it was causing errors | |
register: command_result | |
failed_when: | |
- command_result.rc == 9 |
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: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: mysql | |
namespace: test-namesapce | |
spec: | |
serviceName: "mysql" | |
selector: | |
matchLabels: | |
app: mysql |
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
initContainers: | |
- image: busybox | |
name: mysql-volume-cleaner | |
args: [/bin/sh, -c, 'rm -rf /var/lib/mysql/lost+found || true'] | |
volumeMounts: | |
- mountPath: /var/lib/mysql | |
name: mysql-pvc |
NewerOlder