cloud-native-microservices-security
  • Introduction
  • Introduction
    • Requirements and Setup
    • Demo Application Architecture
  • Hands-On Labs
    • 1.Security via Spring Boot Auto-Configuration
    • 2.Customized Authentication
    • 3.Mutual TLS (MTLS)
    • 4.Authorization
    • 5.Automated Testing
    • 6.Kubernetes Security
      • 6.1.Docker as Root
      • 6.2.Docker as NonRoot
      • 6.3.Kubernetes Deployment
      • 6.4.Kubernetes Pod Security Context
      • 6.5.Kubernetes Pod Security Policies
  • Bonus Labs
    • CSRF Attack Demo
    • Web Authn
Powered by GitBook
On this page
  • Setup
  • Minikube
  • Docker for Windows/Mac
  • Deploy Images to Kubernetes
  • Labs

Was this helpful?

  1. Hands-On Labs

6.Kubernetes Security

Previous5.Automated TestingNext6.1.Docker as Root

Last updated 5 years ago

Was this helpful?

Setup

Minikube

If you are using Minikube then you need to follow these steps to use local docker container images:

```shell script minikube start eval $(minikube docker-env) ./gradlew docker

To see the exposed url for a service in Minikube just use:

```shell script
minikube service list

Docker for Windows/Mac

If you are using Docker for Windows or Mac then the integrated single node Kubernetes automatically can use local container images for deployments.

Deploy Images to Kubernetes

If you have docker installed you can work with building local docker images yourself and deploy these to Kubernetes.

As alternative you may also just use the corresponding container images already available remotely:

Use tags latest or 1.0.

Labs

andifalk/library-server-container-root
andifalk/library-server-container-rootless
Docker as Root
Docker as NonRoot
Kubernetes Deployment
Secure Kubernetes Deployment