add
This commit is contained in:
31
vless/config.json
Normal file
31
vless/config.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"log": {
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
],
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 8080,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "3883e684-6971-11ed-a53b-f388e0649c3d"
|
||||
}
|
||||
],
|
||||
"decryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"security": "none",
|
||||
"wsSettings": {
|
||||
"path": "/KnockOut"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
27
vless/deployment.yaml
Normal file
27
vless/deployment.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: v2ray
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: v2ray
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: v2ray
|
||||
spec:
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: v2ray
|
||||
containers:
|
||||
- name: v2ray
|
||||
image: v2fly/v2fly-core:v5.1.0
|
||||
resources:
|
||||
limits:
|
||||
memory: 32Mi
|
||||
cpu: 200m
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/v2ray
|
27
vless/ingress.yaml
Normal file
27
vless/ingress.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: v2ray
|
||||
labels:
|
||||
name: v2ray
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt
|
||||
kubernetes.io/ingress.class: traefik
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: 'true'
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- '*.wetofu.me'
|
||||
secretName: wetofu-me-certs
|
||||
rules:
|
||||
- host: dev.wetofu.me
|
||||
http:
|
||||
paths:
|
||||
- pathType: ImplementationSpecific
|
||||
path: "/KnockOut"
|
||||
backend:
|
||||
service:
|
||||
name: v2ray
|
||||
port:
|
||||
number: 8080
|
11
vless/kustomization.yaml
Normal file
11
vless/kustomization.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
configMapGenerator:
|
||||
- name: v2ray
|
||||
files:
|
||||
- config.json
|
||||
nameSuffix: -server
|
10
vless/service.yaml
Normal file
10
vless/service.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: v2ray
|
||||
spec:
|
||||
selector:
|
||||
app: v2ray
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
Reference in New Issue
Block a user