Skip to content

juouyang/xray-vpn-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test your config

Server (Reality)

docker run -it -p 443:443 --name xray-server --rm \
    -v $(pwd)/etc/xray:/etc/xray/ \
    teddysun/xray

Client

docker run -d -p 3128:3128 --name xray --restart unless-stopped \
    -v $(pwd)/client/etc/xray:/etc/xray/ \
    teddysun/xray

Deploy to your Kubernetes

Install

kubectl create ns xray-vpn
kubectl config set-context --current --namespace=xray-vpn
kubectl create secret generic vpn-config -n xray-vpn \
  --from-file=etc/xray/config.json \
  -o yaml --dry-run=client | kubeseal -o yaml > manifests/k8s/sealed-config-secret.yaml
kubectl create --save-config -f manifests/k8s/sealed-config-secret.yaml -n xray-vpn
kubectl create --save-config -f manifests/k8s/daemonset.yaml -n xray-vpn

Remove

k delete ns xray-vpn

About

Xray-core vpn on your k8s with hpa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published