Skip to content

cloudsoft/java-cro

Repository files navigation

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.

About

Demo repo for Java Cro 2022 conference

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published