Skip to content

This repository contains the commands and examples used in our talk at DevOps Experience.

Notifications You must be signed in to change notification settings

matheusfm/devops-experience-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marvin and ValidatingAdmissionPolicy demo

This repository contains the commands and examples used in our talk at DevOps Experience.

Creating a k8s cluster with Kind

The command below creates a k8s cluster on version 1.27.2 with Kind.

kind create cluster --config kind-config.yaml

The kind-config.yaml configuration file enables the feature gate ValidatingAdmissionPolicy.

Creating ValidatingAdmissionPolicy

The following commands creates validating admission policies and their bindings.

kubectl apply -f vap/replicas.yaml
kubectl apply -f vap/labels.yaml

See the k8s official documentation for more details.

Playing with deployments

The file deployment.yaml is an example of a k8s Deployment and you can use it for tests.

Edit the file for your tests, such as increasing replicas and adding labels.

kubectl apply -f deployment.yaml

Scanning the cluster with Marvin

Since you have Marvin installed, you can scan a cluster by the following command.

marvin scan -f checks/ --disable-builtin

This command uses the custom checks from the checks/ directory.

Visit the Marvin repository for in-depth information.

About

This repository contains the commands and examples used in our talk at DevOps Experience.

Topics

Resources

Stars

Watchers

Forks