This commit is contained in:
Sense T
2023-06-08 22:13:27 +08:00
parent b21fe927b1
commit aabdebb350
29 changed files with 467 additions and 107 deletions

27
goproxy/deployment.yaml Normal file
View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: goproxy
spec:
selector:
matchLabels:
apps: goproxy
template:
metadata:
apps: goproxy
spec:
containers:
- name: goproxy
image: goproxy
args:
- 'tcp'
- '-p'
- ':33080'
- '-T'
- 'udp'
- '-P'
- 'ksp.midymidy.tk:8800'
resources:
limits:
cpu: '200m'
memory: 128Mi

View File

@@ -0,0 +1,12 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
nameSuffix: -ksp
resources:
- deployment.yaml
- service.yaml
images:
- name: goproxy
newName: snail007/goproxy
newTag: v11.8

15
goproxy/service.yaml Normal file
View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: goproxy
spec:
selector:
app: goproxy
ports:
- port: 33080
targetPort: 33080
ipFamilies:
- IPv4
- IPv6
ipFamilyPolicy: PerferDualStack
type: LoadBalancer