Completed upto lesson 35
This commit is contained in:
28
lab/lesson-33-fixture.yaml
Normal file
28
lab/lesson-33-fixture.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: context-lab
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: report-api
|
||||
namespace: context-lab
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: report-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: report-api
|
||||
spec:
|
||||
containers:
|
||||
- name: api
|
||||
image: nginxinc/nginx-unprivileged:1.27-alpine
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
- name: log-exporter
|
||||
image: busybox:1.37
|
||||
command: ["sh", "-c", "while true; do date >> /var/cache/exporter/events.log; sleep 30; done"]
|
||||
Reference in New Issue
Block a user