-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathkyma.yaml
More file actions
60 lines (59 loc) · 1.64 KB
/
kyma.yaml
File metadata and controls
60 lines (59 loc) · 1.64 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
labels:
app: webapp
spec:
replicas: 1
selector:
matchLabels:
app: webapp
template:
metadata:
labels:
app: webapp
spec:
containers:
- name: webapp-container
image: eooce/python:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: UUID
value: "359f09e8-fcd6-413c-8a07-7ed16eda937d" # 节点UUID
- name: NEZHA_SERVER
value: "" # 双引号内填写哪吒v1地址,没有留空:nezha.xxx.com:8008
- name: NEZHA_KEY
value: "" # 双引号内填写哪吒一key
- name: ARGO_PORT
value: "8001" # 固定隧道端口,在cloudflare里设置和这里一致即可
- name: ARGO_DOMAIN
value: "" # 双引号内固定隧道域名,留空使用临时隧道
- name: ARGO_AUTH
value: "" # 双引号内固定隧道密钥json或token
- name: CHAT_ID
value: "" # 必填,双引号内填写自己的TG chat id发送节点到自己的TG,TG里 @laowang_serv00_bot 获取
- name: BOT_TOKEN
value: ""
resources:
requests:
cpu: "100m"
memory: "256Mi"
limits:
cpu: "500m"
memory: "512Mi"
---
apiVersion: v1
kind: Service
metadata:
name: webapp-service
spec:
selector:
app: webapp
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: ClusterIP