-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeployment.yaml
70 lines (70 loc) · 1.46 KB
/
deployment.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
# Source: service/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: leaklessnote
labels:
category: web
challenge: leaklessnote
spec:
type: NodePort
selector:
category: web
challenge: leaklessnote
ports:
- port: 80
name: http
targetPort: 80
nodePort: 30016
---
# Source: service/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: leaklessnote
labels:
category: web
challenge: leaklessnote
egress: allow
spec:
replicas: 1
selector:
matchLabels:
category: web
challenge: leaklessnote
template:
metadata:
labels:
category: web
challenge: leaklessnote
spec:
enableServiceLinks: false
automountServiceAccountToken: false
dnsPolicy: "None"
dnsConfig:
nameservers:
- 1.1.1.1
- 1.0.0.1
containers:
- name: leaklessnote
image: gcr.io/sekaictf-2023/web_leaklessnote:latest
imagePullPolicy: Always
env:
- name: ADMIN_PASSWORD
value: "vJaYYLdClmQiTMaKVLmKtFWbcPpHPgRX"
- name: FLAG
value: "SEKAI{opleakerorz}"
resources:
requests:
cpu: 1000m
memory: 200Mi
ports:
- containerPort: 80
name: http
livenessProbe:
httpGet:
path: /login.php
port: 80
initialDelaySeconds: 10
periodSeconds: 3