-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
41 lines (41 loc) · 962 Bytes
/
deployment.yaml
File metadata and controls
41 lines (41 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: apps/v1
kind: Deployment
metadata:
name: interview-app
spec:
replicas: 1
selector:
matchLabels:
app: interview
template:
metadata:
labels:
app: interview
spec:
dnsPolicy: "Default"
dnsConfig:
nameservers:
- "203.0.113.123" # Invalid nameserver
searches:
- google.com # Wrong search path
options:
- name: ndots
value: "1"
containers:
- name: main
image: becloudready/k8s-troubleshooting-scenarios:7.0.0
command: ["python3", "/app/troubleshoot_scenarios.py"]
volumeMounts:
- name: config-vol
mountPath: /etc/app
resources:
limits:
memory: "256Mi"
cpu: "500m"
volumes:
- name: config-vol
configMap:
name: app-config
items:
- key: config1.yml # Incorrect key
path: config.yaml