-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: xray proxy scan option #8
- Loading branch information
leveryd
committed
Feb 18, 2023
1 parent
599a620
commit 2cf1aa4
Showing
5 changed files
with
115 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
finalizers: | ||
- kubernetes.io/pvc-protection | ||
name: xray-reverse-db | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: xray-reverse | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: xray-reverse | ||
spec: | ||
hostNetwork: true | ||
containers: | ||
- name: reverse | ||
image: leveryd/xray:v2022.11.22 | ||
ports: | ||
- containerPort: 80 | ||
command: ["/bin/bash", "-c", "/tools/xray reverse"] | ||
resources: | ||
requests: | ||
cpu: "10m" | ||
limits: | ||
cpu: "1" | ||
volumeMounts: | ||
- name: config | ||
mountPath: /tools/config.yaml | ||
subPath: config.yaml | ||
- name: db | ||
mountPath: /db | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: xray-reverse-config | ||
items: | ||
- key: config.yaml | ||
path: config.yaml | ||
- name: db | ||
persistentVolumeClaim: | ||
claimName: xray-reverse-db | ||
selector: | ||
matchLabels: | ||
app: xray-reverse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters