Added basic setup for master and certification material

This commit is contained in:
2022-04-27 16:02:08 +02:00
parent 5f1ddaa73d
commit 2feefe0fd0
66 changed files with 2364 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
spec:
containers:
- name: ubuntu
image: ubuntu:latest
command: [ "sleep" ]
args: [ "infinity" ]

View File

@@ -0,0 +1,41 @@
apiVersion: apps/v1
# Determines YAML versioned schema.
kind: Deployment
# Describes the resource defined in this file.
metadata:
name: nginx-one
labels:
system: secondary
# Required string which defines object within namespace.
namespace: accounting
# Existing namespace resource will be deployed into.
spec:
selector:
matchLabels:
system: secondary
# Declaration of the label for the deployment to manage
replicas: 2
# How many Pods of following containers to deploy
template:
metadata:
labels:
system: secondary
# Some string meaningful to users, not cluster. Keys
# must be unique for each object. Allows for mapping
# to customer needs.
spec:
containers:
# Array of objects describing containerized application with a Pod.
# Referenced with shorthand spec.template.spec.containers
- image: nginx:1.20.1
# The Docker image to deploy
imagePullPolicy: Always
name: nginx
# Unique name for each container, use local or Docker repo image
ports:
- containerPort: 8080
protocol: TCP
# Optional resources this container may need to function.
nodeSelector:
system: secondOne
# One method of node affinity.