Skip to content

Instantly share code, notes, and snippets.

View karthikeayan's full-sized avatar
🎯
Focusing

Karthikeyan karthikeayan

🎯
Focusing
View GitHub Profile
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube2iam
namespace: kube-system
---
apiVersion: v1
items:
- apiVersion: rbac.authorization.k8s.io/v1beta1
global:
scrape_interval: 1m
scrape_timeout: 10s
evaluation_interval: 1m
alerting:
alertmanagers:
- kubernetes_sd_configs:
- role: pod
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: my-arn
username: system:node:{{EC2PrivateDNSName}}
groups:
[2019-07-04 10:22:20,956] {__init__.py:540} DEBUG - Loaded DAG <DAG: video_content_status_sync>
[2019-07-04 10:22:20,958] {__init__.py:402} DEBUG - Importing /home/ubuntu/my_project/dags/task_update_user_loc.py
[2019-07-04 10:22:20,959] {__init__.py:402} DEBUG - Importing /home/ubuntu/my_project/dags/dags_register.py
Scheduling KPI metric task
Environment : development
Config file path : /home/ubuntu/my_project/config/development.json
Hotels count : 331
KPI calculation scheduling
Scheduled feedback collection
Registered dimension table data check task
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout scm
}
}
resource "aws_iam_role" "firehose_role" {
name = "firehose_es_delivery_role"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {

Send E-Mail from alertmanager by using AWS SES as SMTP server

Alertmanager can be configured to send notifications to different targets, Slack, Email, PagerDuty etc.

Use the below steps to configure AWS SES as SMTP server to send E-Mails from alertmanager

  • The from address should be already verified in AWS SES to send E-Mails from that address

  • Check and confirm if you have secret named "alertmanager-main" in monitoring namespace

@karthikeayan
karthikeayan / amznymous.md
Created May 22, 2020 12:59 — forked from bricker/amznymous.md
An Amazon Programmer's Perspective (http://pastebin.com/BjD84BQ3)

Originally posted at http://pastebin.com/BjD84BQ3

Trigger warning: mention of suicidal ideation

tl;dr: I burned out as a developer at Amazon at the end of my second year. I’ve since found a healthy and sustainable work-life balance and enjoy work again. I write this to A) raise awareness, especially for new-hires and their families, and B) help give hope and advice to people going through the same at Amazon or other companies.

Hello, world

There’s been no shortage of anecdotes, opinions, and rebuttals regarding Amazon’s corporate culture as of late. I write this not to capitalize on the latest news-feed fad, but to share what I had already written and promptly deleted. I didn’t think anyone would want to hear my story, but it’s apparent people are going through a similar experience and don’t have a voice.

I’m a Software Development Engineer II at Amazon; SDE II basically means a software developer with at least 2–3 years of industry experience. I started at Amazon as an SDE I.

# Replace <your_telegram_api_token> with your Telegram API Token
# Replace <telegram_channel_id> with your Telegram Channel ID where you have to send the alert
package function
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
@karthikeayan
karthikeayan / README.md
Created October 12, 2020 17:29
Fargate Scheduled Task