Skip to content

Instantly share code, notes, and snippets.

View nimboya's full-sized avatar

Ewere Diagboya nimboya

View GitHub Profile
@nimboya
nimboya / hpa.yaml
Last active February 24, 2022 16:28
Simple HPA Setup
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: nginx-prod
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: nginx-prod
minReplicas: 1
@nimboya
nimboya / eks-managed-ng.tf
Last active February 10, 2022 08:39
EKS Managed Node Group
module "eks" {
source = "terraform-aws-modules/eks/aws"
cluster_name = var.cluster_name
cluster_version = "1.21"
cluster_endpoint_private_access = true
cluster_endpoint_public_access = true
cluster_addons = {
coredns = {
@nimboya
nimboya / velero-policy.json
Last active October 9, 2021 17:00
veleroConfig
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::velero-backup",
"arn:aws:s3:::velero-backup/*"
],
"Action": [
@nimboya
nimboya / Instructions
Last active March 23, 2021 13:31
WordPress In Kubernetes
# Setting up Amazon EKS
1. Run the following command to install the Kubernetes Cluster after install eksctl from eksctl.io
2. Configure the appropriate permissions to give access to IAM, EKS, EC2, and VPC.
3. Login to the EC2 Linux Instance with the appropriate
4. Install kubectl from here: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
5. Enter the following command `eksctl create cluster`
# Installing AWS ALB Ingress
@nimboya
nimboya / config.json
Created November 27, 2020 06:26
Configuration File from CloudWatch Unified Agent
"agent": {
"metrics_collection_interval": 60,
"run_as_user": "root"
},
"metrics": {
@nimboya
nimboya / deployment.yml
Last active September 10, 2021 11:01
MyCloudSeries DevOps Training Kubernetes Demo
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
spec:
selector:
matchLabels:
app: myappms
replicas: 3
template:
@nimboya
nimboya / bucketpolicy.yml
Created August 3, 2020 17:59
Simple S3 Bucket Policy for S3 Websites
{
"Id": "Policy1596477460393",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1596477458210",
"Action": "s3:*",
"Effect": "Allow",
"Resource": "arn:aws:s3:::mcsseries.io/*",
"Principal": "*"
@nimboya
nimboya / index.html
Created August 3, 2020 17:08
Simple HTML page to demonstrate S3 website
<html>
<h1>Welcome to a static S3 website</h2>
</html>
@nimboya
nimboya / deployment.yml
Last active July 28, 2020 13:03
A simple Deployment YAML file
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
spec:
selector:
matchLabels:
app: myappms
replicas: 2
template:
@nimboya
nimboya / build.gradle
Created April 17, 2020 10:11
Build Gradle
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.firebase-crash'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'realm-android'
android {