Skip to content

Instantly share code, notes, and snippets.

View iml1111's full-sized avatar
💭
hi, i'm iml.

IML iml1111

💭
hi, i'm iml.
View GitHub Profile
@iml1111
iml1111 / fluentbit.yaml
Created November 5, 2023 13:45
EKS Workshop: EFK Fluent-bit Daemonset
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: fluent-bit-read
rules:
- apiGroups: [""]
resources:
- namespaces
- pods
@iml1111
iml1111 / cwagent-fluent-bit-quickstart.yaml
Created November 5, 2023 13:40
EKS Workshop: Container Insight Daemon-sets
# {{cluster_name}}
# {{region_name}} = ap-northeast-2
# {{http_server_toggle}} = On
# {{http_server_port}} = 2020
# {{read_from_head}} = Off
# {{read_from_tail}} = On
# create amazon-cloudwatch namespace
apiVersion: v1
kind: Namespace
metadata:
@iml1111
iml1111 / CLUSTER2AZ.yaml
Created October 16, 2023 14:25
eksctl ClusterConfig
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: IML-Cluster
region: ap-northeast-2
version: "1.27"
iam:
withOIDC: true
@iml1111
iml1111 / EKSVPC2AZ_SIMPLE.yaml
Created October 16, 2023 13:45
EKSVPC2AZ_SIMPLE.yaml
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Amazon EKS Sample VPC - Private and Public subnets'
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
-
Label:
default: "Worker Network Configuration"
@iml1111
iml1111 / main.tf
Created October 16, 2023 11:47
[Terraform] ALB + Target group으로 확장성 있는 인프라 만들어보기
data "aws_vpc" "default" {
default = true
}
data "aws_subnets" "all" {
filter {
name = "vpc-id"
values = [data.aws_vpc.default.id]
}
}
@iml1111
iml1111 / main.tf
Last active October 15, 2023 19:58
[Terraform] AWS에 정적 웹사이트 인프라 배포하기
# S3
resource "aws_s3_bucket" "website" {
bucket = var.s3_bucket_name
force_destroy = true
}
resource "aws_s3_bucket_website_configuration" "website_configure" {
bucket = aws_s3_bucket.website.bucket
index_document {
@iml1111
iml1111 / gravatar_example.py
Created April 28, 2022 14:05
Gravatar_example
import os
import requests
import subprocess
import hashlib
__AUTHOR__ = "IML"
# TEST
def md5_hex(text):
m = hashlib.md5()
@iml1111
iml1111 / flask_jwt_tutorial.py
Created April 28, 2022 14:00
flask_jwt_tutorial
from flask import *
from flask_jwt_extended import *
application = Flask(import_name = __name__)
application.config.update(
DEBUG = True,
JWT_SECRET_KEY = "I'M IML"
)
jwt = JWTManager(application)