springbootmicroservicedailybuffer

(★ 70)

Spring Cloud Example (API Gateway, Zipkin, Redis, Authentication, Config Server, Docker, Kubernetes )

File Explorer

  • .gitignore
  • docker-compose.yml
  • Jenkinsfile
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

username

View Details ▼

Manage users.
Accessed in configuration mode.

username {{admin}} privilege 15 secret {{password}}

Set up an admin account:

🔍

docker run

View Details ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

kubectl apply

View Details ▼

Manage applications through files defining Kubernetes resources.
Create and update resources in a cluster.

kubectl apply {{[-f|--filename]}} {{path/to/file}}

Apply a configuration to a resource by file name:

kubectl apply {{[-k|--kustomize]}} {{path/to/directory}}

Apply a configuration to a resource from `kustomization.yaml` in a directory:

{{cat pod.json}} | kubectl apply {{[-f|--filename]}} -

Apply a configuration to a resource by `stdin`:

🔍

kubectl get

View Details ▼

Get Kubernetes objects and resources.

kubectl get {{[ns|namespaces]}}

Get all namespaces in the current cluster:

kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}

Get nodes in a specified namespace:

kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}

Get pods in a specified namespace:

🔍

minikube start

View Details ▼

Start `minikube` with different configurations.

minikube start --kubernetes-version {{v1.24.0}}

Start `minikube` with a specific Kubernetes version:

minikube start --memory {{2048}} --cpus {{2}}

Start `minikube` with specific resource allocations (e.g., memory and CPU):

minikube start --driver {{virtualbox}}

Start `minikube` with a specific driver (e.g., VirtualBox):

🔍

minikube

View Details ▼

Run Kubernetes locally.

minikube start

Start the cluster:

minikube ip

Get the IP address of the cluster:

minikube service {{my_service}} --url

Access a service named `my_service` exposed via a node port and get the URL:

// repository documentation