Skip to content

Instantly share code, notes, and snippets.

View iammuho's full-sized avatar
🚲
Coding like Pedalling!

Muhammet Arslan iammuho

🚲
Coding like Pedalling!
View GitHub Profile
@iammuho
iammuho / nginx-ingress.yaml
Created April 23, 2024 06:07
How to setup Nginx Ingress with AWS Load Balancer Controller
# Project Setup Guide
This document outlines the steps taken to configure and deploy a Kubernetes environment utilizing an AWS Load Balancer and NGINX Ingress Controller via Helm charts.
## Step 1: Create a New Helm Chart
A new Helm chart is created to function as a wrapper, allowing the deployment of the AWS Load Balancer and NGINX Ingress Controller Helm charts together. This setup uses Helm's dependency management capabilities.
### Chart Details
@iammuho
iammuho / cni.md
Created April 17, 2024 12:45
Enabling/configuring the VPC CNI for the EKS with secondary CIDR

Steps for Configuring EKS with VPC CNI Custom Networking

Prerequisites

  • Install the EKS Addon VPC CNI addon.
  • Ensure a secondary CIDR block is attached to the VPC (already done).
  • Ensure private subnets use the secondary CIDR block (already done).
  • Retrieve the cluster security group ID, the VPC ID, and subnet IDs from the AWS Management Console.

Configuration Steps

apiVersion: crd.k8s.amazonaws.com/v1alpha1
kind: ENIConfig
metadata:
name: $az_1
spec:
securityGroups:
- $cluster_security_group_id
subnet: $new_subnet_id_1
---
apiVersion: crd.k8s.amazonaws.com/v1alpha1
---
# Create the service account scoped to our `actions-runner-system` namespace
apiVersion: v1
kind: ServiceAccount
metadata:
name: gh-actions-deploy
namespace: actions-runner-system
secrets:
- name: gh-actions-deploy
@iammuho
iammuho / Github action to update a file with PullRequest
Last active April 13, 2024 18:51
Github action to update a file with github app
name: Sync File to RepoB
on:
push:
branches:
- main
env:
REPO_OWNER: owner
REPO_NAME: repoB
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyScript : MonoBehaviour
{
[SerializeField] GameObject item;
// Start is called before the first frame update
void Start()
{
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: tribe-a
namespace: company
description: This is tribe-a tribe of company
spec:
type: tribe
profile:
displayName: Tribe A
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
font: 300 11px "Helvetica Neue", Helvetica, Arial, sans-serif;
fill: #bbb;
}
.node:hover {
fill: #000;
}
[
{"name":"flare.analytics.cluster.AgglomerativeCluster","size":3938,"imports":["flare.animate.Transitioner","flare.vis.data.DataList","flare.util.math.IMatrix","flare.analytics.cluster.MergeEdge","flare.analytics.cluster.HierarchicalCluster","flare.vis.data.Data"]},
{"name":"flare.analytics.cluster.CommunityStructure","size":3812,"imports":["flare.analytics.cluster.HierarchicalCluster","flare.animate.Transitioner","flare.vis.data.DataList","flare.analytics.cluster.MergeEdge","flare.util.math.IMatrix"]},
{"name":"flare.analytics.cluster.HierarchicalCluster","size":6714,"imports":["flare.vis.data.EdgeSprite","flare.vis.data.NodeSprite","flare.vis.data.DataList","flare.vis.data.Tree","flare.util.Arrays","flare.analytics.cluster.MergeEdge","flare.util.Sort","flare.vis.operator.Operator","flare.util.Property","flare.vis.data.Data"]},
{"name":"flare.analytics.cluster.MergeEdge","size":743,"imports":[]},
{"name":"flare.analytics.graph.BetweennessCentrality","size":3534,"imports":["flare.animate.Transitioner","flare
@iammuho
iammuho / handler.go
Last active December 14, 2019 13:21
// Copyright 2019 Muhammet Arslan <github.com/geass>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,