Code Monkey home page Code Monkey logo

java-cro's Introduction

Java Cro 2022

Install Docker and Enable Kubernetes

  1. Install Docker Desktop, start Kubernetes on it. Use the new virtualization Framework.

  2. Check that all is ok by running the following commands:

# show current context
kubectl config current-context

# get all contexts
kubectl config get-contexts

#  change to local context
kubectl config use-context docker-desktop

# change to EKS context
kubectl config use-context arn:aws:eks:eu-west-2:${AWS_ACCOUNT}:cluster/java-cro-cluster

kubectl cluster-info
kubectl get nodes
kubectl get namespaces
# pod & others
kubectl get pods
kubectl describe pod hoodie-db-xx
kubectl describe service hoodie-db-xx
kubectl get services
kubectl get svc hoodie-db -o wide

Set Up the Kubernetes Dashboard

Install the dashboard.

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yaml

Enable access to the Dashboard:

kubectl proxy

Access here

Create Admin User & Roles:

kubectl apply -f dashboard-user.yaml
kubectl apply -f dashboard-role.yaml

Get token for Dashboard authnetication

kubectl -n kubernetes-dashboard create token admin-user --duration=48h

These are a few simple Kubernetes instructions for running a cluster locally on Docker.

Each directory in the main project contains more resources, including the demo steps.

java-cro's People

Contributors

iuliana avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.