add
This commit is contained in:
27
goproxy/deployment.yaml
Normal file
27
goproxy/deployment.yaml
Normal 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
|
12
goproxy/kustomization.yaml
Normal file
12
goproxy/kustomization.yaml
Normal 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
15
goproxy/service.yaml
Normal 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
|
Reference in New Issue
Block a user