Skip to content

Instantly share code, notes, and snippets.

View allamand's full-sized avatar

Sébastien Allamand allamand

View GitHub Profile
@allamand
allamand / ..Readme.md
Last active July 9, 2025 12:52
Bootstrap Linux

Execute the install script

Tiny Url

curl -sSL https://tinyurl.com/installBox | bash
apiVersion: v1
kind: Namespace
metadata:
name: app1
labels:
allow-attachment-to-infra-gw: "true"
---
apiVersion: apps/v1
kind: Deployment
metadata:
@allamand
allamand / Readme.md
Last active November 17, 2023 19:17
Copy Docker Images to ECR
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify,
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
@allamand
allamand / $Container Demo App (EKS & ECS).md
Last active November 2, 2022 14:37
Container Demo Apps (for EKS and ECS)

Container Demo Apps (for EKS and ECS)

On EKS

2048

configure the 4-2048.ingress.yaml according to your need and then deploy the application

kubectl apply -f 0-2048.namespace.yaml
# Version: 20200918: 25ca1bc881f433d2a42c3b5f59da416f4ef6dc44
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: etcdlockservers.planetscale.com
spec:
group: planetscale.com
@allamand
allamand / $-Readme.md
Last active April 28, 2021 14:28
Test limit of Pods regarding IP allocation with VPC CNI

Test limit of Pods regarding IP allocation with VPC CNI

When using VPC CNI, there are a number of things that can influence the number of pods an instance can have. Here, I won't go into details about the Kubernetes recommended limit of 100 pods per instance, neither than checking cpu/memory limits (i'll use very small pods) in order to focus on the IP allocation limits.

Our goal here will be to uses as many IP as possible on an instance.

How this works

Amazon EKS supports native VPC networking with the Amazon VPC Container Network Interface (CNI) plugin for Kubernetes.

@allamand
allamand / one-time-ec2-ssh-connect.sh
Created September 18, 2020 07:15 — forked from pahud/one-time-ec2-ssh-connect.sh
One Time EC2 SSH public key connect
#!/bin/bash
#https://gist.github.com/allamand/bbe3d237ea465ada68bfe3166aec7dd7
TMPKEY="my-ssh-tmp-key-${RANDOM}"
EC2USER='ec2-user'
generate_ssh_key_pair(){
ssh-keygen -t rsa -f ~/.ssh/${TMPKEY} -N "" && \
chmod 600 ~/.ssh/${TMPKEY}.pub
}
@allamand
allamand / gist:ed515b14185d266a0d07e140e6e9690e
Created July 9, 2019 12:36 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@allamand
allamand / test-stress-medium1.html
Created March 12, 2019 14:18
Cassandra-test cassandra-stress files
<!DOCTYPE html>
<!-- cstar_perf (https://github.com/datastax/cstar_perf) graphing
utility adapted for use directly with command line cassandra-stress -->
<head>
<meta charset="utf-8">
<script language="javascript" type="text/javascript">
<!--