Skip to content

Commit fa9910c

Browse files
authored
Update testing-action.yml
1 parent 4093859 commit fa9910c

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

.github/workflows/testing-action.yml

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -23,63 +23,63 @@ jobs:
2323
2424
- name: Create Kubernetes YAML file
2525
run: |
26-
cat <<'EOF' > interview-deployment.yaml
27-
apiVersion: apps/v1
28-
kind: Deployment
29-
metadata:
30-
name: interview-app
31-
namespace: ${{ github.event.inputs.namespace || 'troubleshooting' }}
32-
spec:
33-
replicas: 1
34-
selector:
35-
matchLabels:
36-
app: interview
37-
template:
38-
metadata:
39-
labels:
40-
app: interview
41-
spec:
42-
dnsPolicy: ClusterFirst
43-
dnsConfig:
44-
nameservers:
45-
- '8.8.8.8'
46-
searches:
47-
- ${{ github.event.inputs.namespace || 'troubleshooting' }}.svc.cluster.local
48-
options:
49-
- name: ndots
50-
value: '2'
51-
containers:
52-
- name: main
53-
image: becloudready/k8s-troubleshooting-scenarios:5.0.0
54-
command: ['python3', '/app/troubleshoot_scenarios.py']
55-
volumeMounts:
56-
- name: config-volume
57-
mountPath: /etc/app
58-
resources:
59-
limits:
60-
memory: '256Mi'
61-
cpu: '500m'
62-
volumes:
63-
- name: config-volume
64-
configMap:
26+
cat << 'EOF' > interview-deployment.yaml
27+
apiVersion: apps/v1
28+
kind: Deployment
29+
metadata:
30+
name: interview-app
31+
namespace: ${{ github.event.inputs.namespace || 'troubleshooting' }}
32+
spec:
33+
replicas: 1
34+
selector:
35+
matchLabels:
36+
app: interview
37+
template:
38+
metadata:
39+
labels:
40+
app: interview
41+
spec:
42+
dnsPolicy: ClusterFirst
43+
dnsConfig:
44+
nameservers:
45+
- '8.8.8.8'
46+
searches:
47+
- ${{ github.event.inputs.namespace || 'troubleshooting' }}.svc.cluster.local
48+
options:
49+
- name: ndots
50+
value: '2'
51+
containers:
52+
- name: main
53+
image: becloudready/k8s-troubleshooting-scenarios:5.0.0
54+
command: ['python3', '/app/troubleshoot_scenarios.py']
55+
volumeMounts:
56+
- name: config-volume
57+
mountPath: /etc/app
58+
resources:
59+
limits:
60+
memory: '256Mi'
61+
cpu: '500m'
62+
volumes:
63+
- name: config-volume
64+
configMap:
65+
name: app-config
66+
items:
67+
- key: config.yml
68+
path: config.yaml
69+
---
70+
apiVersion: v1
71+
kind: ConfigMap
72+
metadata:
6573
name: app-config
66-
items:
67-
- key: config.yml
68-
path: config.yaml
69-
---
70-
apiVersion: v1
71-
kind: ConfigMap
72-
metadata:
73-
name: app-config
74-
namespace: ${{ github.event.inputs.namespace || 'troubleshooting' }}
75-
data:
76-
config.yml: |
77-
database:
78-
host: db-service
79-
port: 5432
80-
logging:
81-
level: debug
82-
EOF
74+
namespace: ${{ github.event.inputs.namespace || 'troubleshooting' }}
75+
data:
76+
config.yml: |
77+
database:
78+
host: db-service
79+
port: 5432
80+
logging:
81+
level: debug
82+
EOF
8383
8484
- name: Apply Deployment and ConfigMap to Kubernetes
8585
run: |

0 commit comments

Comments
 (0)