Added basic setup for master and certification material
This commit is contained in:
14
files/LFS258/SOLUTIONS/s_08/PVol.yaml
Normal file
14
files/LFS258/SOLUTIONS/s_08/PVol.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: pvvol-1
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
nfs:
|
||||
path: /opt/sfw
|
||||
server: k8scp #<-- Edit to match cp node
|
||||
readOnly: false
|
||||
9
files/LFS258/SOLUTIONS/s_08/car-map.yaml
Normal file
9
files/LFS258/SOLUTIONS/s_08/car-map.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: fast-car
|
||||
namespace: default
|
||||
data:
|
||||
car.make: Ford
|
||||
car.model: Mustang
|
||||
car.trim: Shelby
|
||||
48
files/LFS258/SOLUTIONS/s_08/nfs-pod.yaml
Normal file
48
files/LFS258/SOLUTIONS/s_08/nfs-pod.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
deployment.kubernetes.io/revision: "1"
|
||||
generation: 1
|
||||
labels:
|
||||
run: nginx
|
||||
name: nginx-nfs #<-- Edit name
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: nginx
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 1
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
run: nginx
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx
|
||||
imagePullPolicy: Always
|
||||
name: nginx
|
||||
volumeMounts:
|
||||
- name: nfs-vol
|
||||
mountPath: /opt
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumes: #<<-- These four lines
|
||||
- name: nfs-vol
|
||||
persistentVolumeClaim:
|
||||
claimName: pvc-one
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
10
files/LFS258/SOLUTIONS/s_08/pvc.yaml
Normal file
10
files/LFS258/SOLUTIONS/s_08/pvc.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pvc-one
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 200Mi
|
||||
14
files/LFS258/SOLUTIONS/s_08/simpleshell.yaml
Normal file
14
files/LFS258/SOLUTIONS/s_08/simpleshell.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: shell-demo
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx
|
||||
env:
|
||||
- name: ilike
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: colors
|
||||
key: favorite
|
||||
8
files/LFS258/SOLUTIONS/s_08/storage-quota.yaml
Normal file
8
files/LFS258/SOLUTIONS/s_08/storage-quota.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
name: storagequota
|
||||
spec:
|
||||
hard:
|
||||
persistentvolumeclaims: "10"
|
||||
requests.storage: "500Mi"
|
||||
Reference in New Issue
Block a user