- resize the EBS volume size from EC2 console(e.g. 8GB to 20GB)
- sudo growpart /dev/xvda 1
- sudo resize2fs /dev/xvda1 or sudo resize2fs /dev/nvme0n1p1
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
workflow "Demo workflow" { | |
on = "push" | |
resolves = ["SNS Notification"] | |
} | |
action "Build Image" { | |
uses = "actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6" | |
runs = ["/bin/sh", "-c", "docker build -t $IMAGE_URI ."] | |
env = { | |
IMAGE_URI = "xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/github-action-demo:latest" |
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
ap-south-1 | |
eu-west-3 | |
eu-north-1 | |
eu-west-2 | |
eu-west-1 | |
ap-northeast-3 | |
ap-northeast-2 | |
ap-northeast-1 | |
sa-east-1 | |
ca-central-1 |
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 nginx 1st pod IP | |
kubectl get po -l run=nginx --output=jsonpath={.items[0].status.podIP} |
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 | |
open_lftp(){ | |
lftp sftp://pahud:@s-xxxxxxxxxxxxxx.server.transfer.eu-central-1.amazonaws.com "$@" | |
} | |
backup_canon1(){ | |
open_lftp -e "ls; cd EOS_DIGITAL/DCIM/100CANON/; mirror -R --only-newer --ignore-time /Volumes/2T-BLACK/Norway2018/Canon_M50/backup01/ .;exit;" | |
} |
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 | |
# make sure your awscli version is >= 1.16.56 | |
# | |
# 1. create a launch template and copy the LaunchTemplateId | |
# 2. create mix-policy.json | |
# 3. run create-asg.sh | |
# | |
# by pahudnet@gmail.com | |
asgname=demo |
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 | |
cleanup() { | |
rm -rf awscli-bundle | |
rm -f awscli-bundle.zip | |
} | |
cleanup | |
rm -rf awscli-bundle* |
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
{ | |
"LaunchTemplateConfigs": [ | |
{ | |
"LaunchTemplateSpecification": { | |
"LaunchTemplateId": "lt-0f0f4ab2e775e73a2", | |
"Version": "1" | |
}, | |
"Overrides": [ | |
{ | |
"InstanceType": "t2.medium", |
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 | |
source env.config | |
cluster_name='cluster.zhy.k8s.local' | |
# official CoreOS AMI | |
#ami='ami-e7958185' | |
ami='ami-06a0b464' |
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: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: v1 | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: |