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,9 @@
apiVersion: v1
kind: Pod
metadata:
name: break1
spec:
containers:
- name: mountain-region
image: nginx:1.11-apline

View File

@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
app: break2
name: break2
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: break2
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: break2
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: brokenapp
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- name: goproxy
image: k8s.gcr.io/goproxy:0.1
readinessProbe:
tcpSocket:
port: 808
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 808
initialDelaySeconds: 15
periodSeconds: 20
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:

View File

@@ -0,0 +1,28 @@
apiVersion: v1
kind: Pod
metadata:
name: design-pod1
spec:
containers:
- image: vish/stress
name: design-pod1
resources:
limits:
cpu: "2.22"
memory: "567Mi"
requests:
cpu: "0.3"
memory: "456Mi"
args:
- -cpus
- "1"
- -mem-total
- "1036Mi"
- -mem-alloc-size
- "500Mi"
- -mem-alloc-sleep
- "1s"
#Domain CPU requirements

View File

@@ -0,0 +1,28 @@
apiVersion: v1
kind: Pod
metadata:
name: design-pod1
spec:
containers:
- image: vish/stress
name: design-pod1
resources:
limits:
cpu: "2.22"
memory: "567Mi"
requests:
cpu: "0.3"
memory: "456Mi"
args:
- -cpus
- "1"
- -mem-total
- "1036Mi"
- -mem-alloc-size
- "500Mi"
- -mem-alloc-sleep
- "1s"
#Domain CPU requirements

View File

@@ -0,0 +1,46 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Pod
metadata:
labels:
review: tux
name: label-pod1
spec:
containers:
- image: nginx
name: design-a
- apiVersion: v1
kind: Pod
metadata:
labels:
review: tux
name: label-pod2
spec:
containers:
- image: nginx
name: design-b
- apiVersion: v1
kind: Pod
metadata:
labels:
linux: rocks
name: label-pod3
spec:
containers:
- image: nginx
name: design-c
- apiVersion: v1
kind: Pod
metadata:
labels:
domain: review
name: label-pod4
spec:
containers:
- image: nginx
name: design-d
# Create pods with selectors

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Pod
metadata:
name: securityreview
spec:
securityContext:
runAsUser: 2100
containers:
- name: webguy
image: nginx
securityContext:
runAsUser: 3000
allowPrivilegeEscalation: false

View File

@@ -0,0 +1,53 @@
apiVersion: extensions/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
generation: 1
labels:
run: igottrouble
name: igottrouble
spec:
replicas: 0
selector:
matchLabels:
run: ugottrouble
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: igottrouble
spec:
containers:
- image: vish/stress
imagePullPolicy: Always
name: igottrouble
resources:
limits:
cpu: "1"
memory: "1Gi"
requests:
cpu: "2.5"
memory: "500Mi"
args:
- -cpus
- "2"
- -mem-total
- "1950Mi"
- -mem-alloc-size
- "100Mi"
- -mem-alloc-sleep
- "1s"
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30