101 lines
2.3 KiB
YAML
101 lines
2.3 KiB
YAML
version: 1
|
|
kind: platform-infra-sub2rank
|
|
|
|
metadata:
|
|
id: sub2rank-public
|
|
owner: unidesk
|
|
relatedIssues: []
|
|
|
|
defaults:
|
|
targetId: NC01
|
|
|
|
application:
|
|
sourceRoot: /root/sub2rank
|
|
configRef: /root/sub2rank/config/sub2rank.yaml
|
|
runtimeTarget: k8s
|
|
|
|
image:
|
|
repository: 127.0.0.1:5000/sub2rank/sub2rank
|
|
tag: 14f51f5e1242d0e048f51bbea5937e3022361e9a
|
|
pullPolicy: IfNotPresent
|
|
|
|
targets:
|
|
- id: NC01
|
|
route: NC01:k3s
|
|
namespace: platform-infra
|
|
enabled: true
|
|
replicas: 1
|
|
publicExposure:
|
|
enabled: true
|
|
publicBaseUrl: https://rank.pikapython.com
|
|
dns:
|
|
hostname: rank.pikapython.com
|
|
expectedA: 82.156.23.220
|
|
resolvers:
|
|
- 1.1.1.1
|
|
- 8.8.8.8
|
|
- 223.5.5.5
|
|
- 114.114.114.114
|
|
frpc:
|
|
deploymentName: sub2rank-frpc
|
|
configMapName: sub2rank-frpc-config
|
|
configKey: frpc.toml
|
|
image: 127.0.0.1:5000/hwlab/frpc:v0.68.1
|
|
serverAddr: 82.156.23.220
|
|
serverPort: 22000
|
|
proxyName: platform-infra-sub2rank-nc01-web
|
|
remotePort: 22095
|
|
localIP: sub2rank.platform-infra.svc.cluster.local
|
|
localPort: 8080
|
|
tokenEnvName: FRP_TOKEN
|
|
tokenTargetKey: FRP_TOKEN
|
|
pk01:
|
|
route: PK01
|
|
caddyConfigPath: /etc/caddy/Caddyfile
|
|
caddyServiceName: caddy
|
|
responseHeaderTimeoutSeconds: 60
|
|
|
|
runtime:
|
|
sharedNetworkPolicyRef:
|
|
name: allow-all
|
|
managedBySub2Rank: false
|
|
service:
|
|
name: sub2rank
|
|
port: 8080
|
|
configMap:
|
|
name: sub2rank-config
|
|
key: sub2rank.yaml
|
|
mountPath: /etc/sub2rank/sub2rank.yaml
|
|
command:
|
|
- bun
|
|
- src/server.ts
|
|
- --config
|
|
- /etc/sub2rank/sub2rank.yaml
|
|
- --runtime
|
|
- k8s
|
|
storage:
|
|
claimName: sub2rank-data
|
|
size: 1Gi
|
|
mountPath: /var/lib/sub2rank
|
|
secret:
|
|
configRef: config/secrets-distribution.yaml
|
|
declarationId: sub2rank-runtime
|
|
requiredTargetKeys:
|
|
- SUB2RANK_ADMIN_TOKEN
|
|
- SUB2API_ADMIN_EMAIL
|
|
- SUB2API_ADMIN_PASSWORD
|
|
- FRP_TOKEN
|
|
appEnvTargetKeys:
|
|
- SUB2RANK_ADMIN_TOKEN
|
|
- SUB2API_ADMIN_EMAIL
|
|
- SUB2API_ADMIN_PASSWORD
|
|
probes:
|
|
healthPath: /health
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 6
|
|
rollout:
|
|
fieldManager: unidesk-platform-sub2rank
|
|
waitTimeoutSeconds: 180
|