{"id":16969298,"url":"https://github.com/webmasterdevlin/redux-asp-kubernetes-demo","last_synced_at":"2025-03-21T18:46:05.349Z","repository":{"id":102789257,"uuid":"277593967","full_name":"webmasterdevlin/redux-asp-kubernetes-demo","owner":"webmasterdevlin","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-31T09:04:28.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T13:41:43.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webmasterdevlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-06T16:30:14.000Z","updated_at":"2021-10-31T09:04:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"67e68cd4-e495-4604-a7c5-2a0d48c4d802","html_url":"https://github.com/webmasterdevlin/redux-asp-kubernetes-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fredux-asp-kubernetes-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fredux-asp-kubernetes-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fredux-asp-kubernetes-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fredux-asp-kubernetes-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmasterdevlin","download_url":"https://codeload.github.com/webmasterdevlin/redux-asp-kubernetes-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852315,"owners_count":20521151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T00:24:43.335Z","updated_at":"2025-03-21T18:46:05.327Z","avatar_url":"https://github.com/webmasterdevlin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASP.NET Core web application React.js and Redux in Kubernetes\n\n## Basic Terminologies\n\n### Deployments\n\n- a template or a blueprint for creating pods (where container lives)\n- you describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state at a controlled rate.\n\n### Services\n\n- IP addresses for pods\n- an abstract way to expose an application running on a set of Pods as a network service.\n\n### Ingress\n\n- Replaces IP addresses with readable domain names\n- an API object that manages external access to the services in a cluster, typically HTTP.\n- Ingress may provide load balancing, SSL termination and name-based virtual hosting.\n\n### ConfigMap\n\n- a ConfigMap is an API object used to store non-confidential data in key-value pairs.\n\n### Secrets\n\n- a Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key.\n\n## To start\n\n- terminal must be in admin level to run minikube\n\n- choose HyperV (for Windows), Hyperkit (for MacOS), Virtualbox (for Linux)\n\n```zsh\n$ minikube config set driver {hyperv|hyperkit|virtualbox}\n```\n\nStart Kubernetes Cluster\n\n```zsh\n$ minikube start\n```\n\nBasic Addons\n\n```zsh\n$ minikube addons enable ingress\n$ minikube addons enable metrics-server\n```\n\nGet the Minikube IP\n\n```zsh\n$ minikube ip\n```\n\nShow Kubernetes Dashboard\n\n```zsh\n$ minikube dashboard\n```\n\n```zsh\n$ kubectl apply -f react-asp-in-minikube.yml\n```\n\n## OR\n\n```zsh\n$ kubectl apply -f seperated-yamls/aspnet-api.yml\n```\n\n```zsh\n$ kubectl apply -f seperated-yamls/react-client-app.yml\n```\n\n```zsh\n$ kubectl apply -f seperated-yamls/minikube-ingress.yml\n```\n\n    - Edit your computer's /etc/hosts file with an admin access level.\n    - {minikube'sIp} hello.world\n    - The real hello.world website is blocked while it is being used as the proxy of the minikube's IP address\n\nSend requests\n\n```zsh\n$ for ((i=1;i\u003c=200;i++)); do curl http://hello.world/fetch-data; done\n```\n\n---\n\n## AKS\n\nSet subscription ID and cluster\n\n```zsh\n$ az account set --subscription yourSubscriptionID\n$ az aks get-credentials --resource-group your-rg --name yourCluster\n```\n\nCreate a namespace for your ingress resources\n\n```zsh\n$ kubectl create namespace ingress-basic\n```\n\nAdd the official stable repository\n\n```zsh\n$ helm repo add stable https://charts.helm.sh/stable\n```\n\nUse Helm to deploy an NGINX ingress controller\n\n```zsh\n$ helm install nginx-ingress stable/nginx-ingress \\\n --set controller.replicaCount=2 \\\n --set controller.nodeSelector.\"beta\\.kubernetes\\.io/os\"=linux \\\n --set defaultBackend.nodeSelector.\"beta\\.kubernetes\\.io/os\"=linux\n```\n\n---\n\n### TLS\n\n```zsh\n$ kubectl create namespace cert-manager\n```\n\n```zsh\nhelm repo add jetstack https://charts.jetstack.io\nhelm repo update\n```\n\n```zsh\n$ kubectl apply --validate=false -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.14/deploy/manifests/00-crds.yaml\n```\n\n```zsh\nhelm install cert-manager \\\n    --namespace cert-manager \\\n    --version v0.14.0 \\\n    jetstack/cert-manager\n```\n\n```zsh\n$ kubectl get pods --namespace cert-manager\n```\n\n```zsh\n$ kubectl apply -f cluster-issuer.yaml\n```\n\n```zsh\n$ kubectl apply -f react-asp-in-aks.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmasterdevlin%2Fredux-asp-kubernetes-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmasterdevlin%2Fredux-asp-kubernetes-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmasterdevlin%2Fredux-asp-kubernetes-demo/lists"}