Skip to content

This repository has kubernetes files with simple everyday templates.

Notifications You must be signed in to change notification settings

sebaswk/kubernetes

Repository files navigation

KUBERNETES REPOSITORY

This repository has kubernetes archives with simple manifest templates.

File guide

Manifest name Description
Namespace Create a Namespace
Pod Create pod
Service Create service
Application Load Balancer Create an Aplication Load Balancer
Pod with Ingress Controller Create pod with ingress controller Kong
ConfigMap Create config map
Pod with ConfigMap Create pod with Config Map

Install KUBECTL

Install kubectl in its latest version on linux: https://github.com/sebaswk/bash/blob/main/kubectlInstall.sh

Configure KUBECTL

This setup requires AWS Cli to be installed.

Command:
  • aws eks update-kubeconfig --name "cluster name"
Test:
  • kubectl get pods --all-namespaces
  • kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh

Probable mistakes

If you have permission problems in your cluster, review the "configmap" that contains the users and roles that can modify it.

Command:
  • kubectl -n kube-system edit configmap aws-auth
It should look something like this: (In this case, the cluster is in AWS EKS)
  • mapUsers: |
    • userarn: arn:aws:iam::999999999999:user/useradmin
    • username: useradmin
    • groups:
      • system:masters

Kong - Konga

About me

https://github.com/sebaswk

About

This repository has kubernetes files with simple everyday templates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published