Compare commits

...

4 Commits

Author SHA1 Message Date
30b14c6c64 Merge pull request 'k8s notes' (#3) from notes into main
Reviewed-on: #3
2025-11-16 11:20:40 +13:00
aa66138f3e k8s notes 2025-11-16 11:19:59 +13:00
f6aefa0a24 Merge pull request 'Some kubernetes files' (#2) from testing into main
Reviewed-on: http://192.168.50.253:3001/luddie/k8straining/pulls/2
2025-11-13 22:24:08 +13:00
Ludwig Mey
1bee88aa57 Some kubernetes files 2025-11-13 22:21:23 +13:00
20 changed files with 8708 additions and 0 deletions

20
4-deployment.yaml Normal file
View File

@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-deploy
spec:
replicas: 2
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: nginx
image: nginx
envFrom:
- configMapRef:
name: app-config

BIN
Notes/Core+concepts+-2.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Notes/Networking.pdf Normal file

Binary file not shown.

BIN
Notes/Static+Pods.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

8637
all-deploy-services.yaml Normal file

File diff suppressed because it is too large Load Diff

18
app-rs.yaml Normal file
View File

@@ -0,0 +1,18 @@
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: app-rs
spec:
replicas: 2
selector:
matchLabels:
tier: web
template:
metadata:
labels:
tier: web
spec:
containers:
- name: nginx
image: nginx

12
app-svc.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: app-svc
spec:
selector:
tier: frontend
ports:
- port: 80
targetPort: 80
protocol: TCP

9
configmap.yaml Normal file
View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
APP_COLOR: blue
APP_MODE: production
# oops, this key should be APP_VERSION but it's wrong
APP_VERSOIN: "1.0"

12
pod.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Pod
metadata:
name: app-pod
spec:
containers:
- name: nginx
image: nginx
envFrom:
- configMapRef:
name: app-config