Deployed outfleet-rs
This commit is contained in:
66
k8s/apps/vpn/deployment.yaml
Normal file
66
k8s/apps/vpn/deployment.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: outfleet-rs
|
||||
labels:
|
||||
app: outfleet-rs
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: outfleet-rs
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: outfleet-rs
|
||||
spec:
|
||||
hostname: outfleet-rs
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||
containers:
|
||||
- name: outfleet-rs
|
||||
image: 'ultradesu/outfleet:rs-0.2'
|
||||
imagePullPolicy: Always
|
||||
command: ["/bin/sh"]
|
||||
args:
|
||||
- "-c"
|
||||
- |
|
||||
set -x
|
||||
/app/xray-admin --host 0.0.0.0 --port 8080
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: RUST_LOG
|
||||
value: "info"
|
||||
volumeMounts:
|
||||
- name: outfleet-config
|
||||
mountPath: /app/config.toml # <-- target path inside container
|
||||
subPath: config.toml # <-- use the specific key as a file
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: outfleet-config
|
||||
configMap:
|
||||
name: outfleet-rs-config
|
||||
items:
|
||||
- key: config.toml
|
||||
path: config.toml
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: outfleet-rs
|
||||
spec:
|
||||
selector:
|
||||
app: outfleet-rs
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
Reference in New Issue
Block a user