Skip to content

Instantly share code, notes, and snippets.

View nimboya's full-sized avatar

Ewere Diagboya nimboya

View GitHub Profile
@nimboya
nimboya / ingress.yml
Created February 13, 2024 10:12
alb-ingress-waf
apiVersion: networking:k8s.io/v1
kind: Ingress
metadata:
name: app-name
annotations:
alb.ingress.kubernetes.io/group.name: staging
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:eu-west-2:123456789:certificate/124-123-12babc
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"type":"redirect", "redirectconfig": {"protocol":"https","port":"443","statuscode":"HTTP_301"}}'
@nimboya
nimboya / dependabot.yml
Created October 27, 2023 05:44
Dependabot Config File
version: 2
registries:
my-npm-registry:
type: npm-registry
url: https://npm.pkg.github.com
token: {{ secrets.DEPENDABOT_PAT }}
updates:
- package-ecosystem: "npm"
directory: "/"
@nimboya
nimboya / lambda-get-securityhub-findings.py
Last active February 12, 2023 04:08
Export AWS SecurityHub Findings to CSV
import json
import boto3
import botocore
import csv
securityhub = boto3.client('securityhub')
s3 = boto3.resource('s3')
_filter = Filters={
'ComplianceStatus': [
{
@nimboya
nimboya / deployment.yml
Last active August 15, 2023 08:47
Kubernetes Deployment File
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
spec:
selector:
matchLabels:
app: nginxdemo
replicas: 3
template:
@nimboya
nimboya / ghost-docker-compose.yml
Created May 20, 2022 12:39
Ghost Docker Compose File
version: '3.1'
services:
ghost:
image: ghost:4-alpine
restart: always
ports:
- 8080:2368
environment:
@nimboya
nimboya / rmq-values.yml
Last active May 6, 2022 09:48
Values for Helm RabbitMQ
## @section Global parameters
## Global Docker image parameters
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
##
## @param global.imageRegistry Global Docker image registry
## @param global.imagePullSecrets Global Docker registry secret names as an array
## @param global.storageClass Global StorageClass for Persistent Volume(s)
##
@nimboya
nimboya / compose.yml
Created April 7, 2022 10:54
Composable Polkadot Parachain
version: "3.7"
services:
composable_node:
image: composablefi/composable:latest
container_name: composable_node
volumes:
- ./chain-data:/chain-data
ports:
- 9833:9833
@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": [