代码拉取完成,页面将自动刷新
apiVersion: v1
kind: Service
metadata:
name: ovpn0
namespace: ovpn
labels:
app: ovpn0
spec:
ports:
- port: 1194
targetPort: 1194
nodePort: 31304
protocol: UDP
name: openvpn
selector:
app: ovpn0
type: NodePort
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ovpn0
namespace: ovpn
labels:
app: ovpn0
track: stable
spec:
strategy:
type: RollingUpdate
template:
metadata:
labels:
name: openvpn
app: ovpn0
spec:
containers:
- image: kylemanna/openvpn
name: ovpn
ports:
- containerPort: 1194
name: openvpn
protocol: UDP
securityContext:
capabilities:
add:
- NET_ADMIN
volumeMounts:
- name: ovpn0-key
mountPath: /etc/openvpn/pki/private
- name: ovpn0-cert
mountPath: /etc/openvpn/pki/issued
- name: ovpn0-pki
mountPath: /etc/openvpn/pki
- name: ovpn0-conf
mountPath: /etc/openvpn
- name: ccd0
mountPath: /etc/openvpn/ccd
volumes:
- name: ovpn0-key
secret:
secretName: ovpn0-key
defaultMode: 0600
- name: ovpn0-cert
secret:
secretName: ovpn0-cert
- name: ovpn0-pki
secret:
secretName: ovpn0-pki
defaultMode: 0600
- name: ovpn0-conf
configMap:
name: ovpn0-conf
- name: ccd0
configMap:
name: ccd0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。