Giter VIP home page Giter VIP logo

kubernetes-test's Introduction

Kubernetes Manifests Test

This repository contains the necessary YAML files to deploy resources in Kubernetes as specified in the test. The resources include Cluster Autoscaler, Metrics Server, Kube State Metrics, and an HTTPBin application with automatic scaling.

Requirements

  • Git
  • kubectl
  • A configured and accessible Kubernetes cluster
  • Proper permissions to deploy resources to the cluster
  • Autoscalling group with the follow tags:
k8s.io/cluster-autoscaler/enabled
k8s.io/cluster-autoscaler/MeuClusterName
  • AWS Role with follow policy
{
  "Version": "2012-10-17",
  "Statement": [
   {
        "Effect": "Allow",
        "Action": [
          "autoscaling:DescribeAutoScalingGroups",
          "autoscaling:DescribeAutoScalingInstances",
          "autoscaling:DescribeLaunchConfigurations",
          "autoscaling:DescribeScalingActivities",
          "autoscaling:DescribeTags",
          "ec2:DescribeInstanceTypes",
          "ec2:DescribeLaunchTemplateVersions"
        ],
        "Resource": ["*"]
    }
  ]
} 

For details about resources and requirements:

https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md https://docs.aws.amazon.com/eks/latest/userguide/metrics-server.html https://github.com/kubernetes-sigs/metrics-server

Directory Structure

The repository is organized as follows:

  • kube-system/: Contains manifests for resources in the kube-system namespace.
  • production/: Contains manifests for the HTTPBin application in the production namespace.

Usage

  1. Clone the repository:
$ git clone https://github.com/ronigarcia/kubernetes-test

$ cd kubernetes-test
  1. Edit the kube-system/cluster-autoscaler/deployment.yaml and kube-system/cluster-autoscaler/serviceaccount.yaml with your environment information.
$ kubectl apply -f kube-system/cluster-autoscaler/* --context <kubernetes_cluster> --namespace kube-system

$ kubectl apply -f kube-system/metric-server/* --context <kubernetes_cluster> --namespace kube-system

$ kubectl apply -f kube-system/kube-state-metrics/* --context <kubernetes_cluster> --namespace kube-system
  1. Deploying the HTTPBin Application in the production Namespace

To deploy the HTTPBin application in the production namespace, follow these steps:

$ kubectl create namespace production

$ kubectl apply -f production/application/* --context <kubernetes_cluster> --namespace production

kubernetes-test's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.