Added basic setup for master and certification material
This commit is contained in:
9
files/LFS258/SOLUTIONS/s_A/review1.yaml
Normal file
9
files/LFS258/SOLUTIONS/s_A/review1.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: break1
|
||||
spec:
|
||||
containers:
|
||||
- name: mountain-region
|
||||
image: nginx:1.11-apline
|
||||
|
||||
53
files/LFS258/SOLUTIONS/s_A/review2.yaml
Normal file
53
files/LFS258/SOLUTIONS/s_A/review2.yaml
Normal 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:
|
||||
|
||||
28
files/LFS258/SOLUTIONS/s_A/review3.yaml
Normal file
28
files/LFS258/SOLUTIONS/s_A/review3.yaml
Normal 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
|
||||
|
||||
28
files/LFS258/SOLUTIONS/s_A/review4.yaml
Normal file
28
files/LFS258/SOLUTIONS/s_A/review4.yaml
Normal 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
|
||||
|
||||
46
files/LFS258/SOLUTIONS/s_A/review5.yaml
Normal file
46
files/LFS258/SOLUTIONS/s_A/review5.yaml
Normal 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
|
||||
13
files/LFS258/SOLUTIONS/s_A/review6.yaml
Normal file
13
files/LFS258/SOLUTIONS/s_A/review6.yaml
Normal 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
|
||||
53
files/LFS258/SOLUTIONS/s_A/review7.yaml
Normal file
53
files/LFS258/SOLUTIONS/s_A/review7.yaml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user