This commit is contained in:
2026-03-02 19:38:55 +08:00
parent c59ad4b83f
commit b88853df95
2 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
{
"port": 12000,
"npmRegistry": "https://registry.npmmirror.com/",
"logLevel": "info",
"accessLog": true,
"storageS3": {
"type": "s3",
"endpoint": "https://tos-s3-cn-shanghai.ivolces.com",
"region": "cn-shanghai",
"accessKeyID": "AKLTOWNhNmJkNDJmNzFkNGI3MDlmMWQzYTA2ZjBkYTc2YTg",
"secretAccessKey": "TWpjME9EVm1OVFJtTkROaE5ESXlaR0ptWlRnd1lqVm1Nems0TW1Ka1pUZw=="
}
}

View File

@@ -137,6 +137,8 @@ spec:
labels: labels:
app: traefik app: traefik
spec: spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: traefik serviceAccountName: traefik
nodeSelector: nodeSelector:
kubernetes.io/hostname: kevisual # 节点主机名是 kevisual kubernetes.io/hostname: kevisual # 节点主机名是 kevisual
@@ -164,10 +166,13 @@ spec:
ports: ports:
- name: web - name: web
containerPort: 80 containerPort: 80
hostPort: 80
- name: websecure - name: websecure
containerPort: 443 containerPort: 443
hostPort: 443
- name: admin - name: admin
containerPort: 8080 containerPort: 8080
hostPort: 8080
volumeMounts: volumeMounts:
- name: acme-storage - name: acme-storage
mountPath: /acme mountPath: /acme
@@ -183,21 +188,23 @@ metadata:
namespace: traefik namespace: traefik
spec: spec:
type: NodePort type: NodePort
externalIPs:
- 118.196.32.29
selector: selector:
app: traefik app: traefik
ports: ports:
- name: web - name: web
port: 80 port: 80
targetPort: 80 targetPort: 80
nodePort: 30080 # 外部通过 30080 访问 HTTP nodePort: 30080
- name: websecure - name: websecure
port: 443 port: 443
targetPort: 443 targetPort: 443
nodePort: 30443 # 外部通过 30443 访问 HTTPS nodePort: 30443
- name: admin - name: admin
port: 8080 port: 8080
targetPort: 8080 targetPort: 8080
nodePort: 30808 # Dashboard nodePort: 30808
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: IngressClass kind: IngressClass