mirror of
https://github.com/flant/ovpn-admin.git
synced 2025-12-15 21:16:14 -08:00
Fix chart
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
parent
2eb30014ad
commit
696bf332c6
@ -30,6 +30,11 @@ Kubernetes: `>=1.14.0-0`
|
|||||||
| openvpn.subnet | string | `"172.16.200.0/255.255.255.0"` | |
|
| openvpn.subnet | string | `"172.16.200.0/255.255.255.0"` | |
|
||||||
| openvpn.inlet | string | `"HostPort"` | |
|
| openvpn.inlet | string | `"HostPort"` | |
|
||||||
| openvpn.hostPort | int | `1194` | |
|
| openvpn.hostPort | int | `1194` | |
|
||||||
|
| nodeSelector | object | `{}` | [Node selector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) configuration. |
|
||||||
|
| tolerations | list | `[]` | [Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for node taints. See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling) for details. |
|
||||||
|
| ingress.enabled | bool | `false` | Enable [ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/). |
|
||||||
|
| ingress.className | string | `""` | Ingress [class name](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class). |
|
||||||
|
| ingress.annotations | object | `{}` | Annotations to be added to the ingress. |
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
|
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
|
||||||
|
|||||||
@ -12,13 +12,13 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: openvpn
|
app: openvpn
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.openvpn.nodeSelector }}
|
{{- if .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- .Values.openvpn.nodeSelector | toYaml | indent 8 | printf "\n%s" }}
|
{{- .Values.nodeSelector | toYaml | indent 8 | printf "\n%s" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.openvpn.tolerations }}
|
{{- if .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- .Values.openvpn.tolerations | toYaml | indent 8 | printf "\n%s" }}
|
{{- .Values.tolerations | toYaml | indent 8 | printf "\n%s" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
terminationGracePeriodSeconds: 0
|
terminationGracePeriodSeconds: 0
|
||||||
serviceAccountName: openvpn
|
serviceAccountName: openvpn
|
||||||
|
|||||||
@ -4,12 +4,17 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: ovpn-admin
|
name: ovpn-admin
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: nginx
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
nginx.ingress.kubernetes.io/auth-type: basic
|
nginx.ingress.kubernetes.io/auth-type: basic
|
||||||
nginx.ingress.kubernetes.io/auth-realm: "Authentication Required"
|
nginx.ingress.kubernetes.io/auth-realm: "Authentication Required"
|
||||||
nginx.ingress.kubernetes.io/auth-secret: basic-auth
|
nginx.ingress.kubernetes.io/auth-secret: basic-auth
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.ingress.className }}
|
||||||
|
ingressClassName: {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- {{ .Values.domain }}
|
- {{ .Values.domain }}
|
||||||
@ -25,15 +30,3 @@ spec:
|
|||||||
name: ovpn-admin
|
name: ovpn-admin
|
||||||
port:
|
port:
|
||||||
name: http
|
name: http
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Certificate
|
|
||||||
metadata:
|
|
||||||
name: ovpn-admin
|
|
||||||
spec:
|
|
||||||
secretName: ingress-tls
|
|
||||||
dnsNames:
|
|
||||||
- {{ .Values.domain }}
|
|
||||||
issuerRef:
|
|
||||||
name: letsencrypt
|
|
||||||
kind: ClusterIssuer
|
|
||||||
|
|||||||
@ -7,13 +7,7 @@ ovpnAdmin:
|
|||||||
openvpn:
|
openvpn:
|
||||||
image: changeme
|
image: changeme
|
||||||
subnet: 172.16.200.0/255.255.255.0
|
subnet: 172.16.200.0/255.255.255.0
|
||||||
# nodeSelector:
|
# LoadBalancer or ExternalIP or HostPort
|
||||||
# node-role.kubernetes.io/master: ""
|
|
||||||
# tolerations:
|
|
||||||
# - effect: NoSchedule
|
|
||||||
# key: node-role.kubernetes.io/master
|
|
||||||
#
|
|
||||||
# // LoadBalancer or ExternalIP or HostPort
|
|
||||||
inlet: HostPort
|
inlet: HostPort
|
||||||
#
|
#
|
||||||
# If inlet: ExternalIP
|
# If inlet: ExternalIP
|
||||||
@ -24,3 +18,22 @@ openvpn:
|
|||||||
hostPort: 1194
|
hostPort: 1194
|
||||||
# Domain or ip for connect to OpenVPN server
|
# Domain or ip for connect to OpenVPN server
|
||||||
# externalHost: 1.2.3.4
|
# externalHost: 1.2.3.4
|
||||||
|
|
||||||
|
# -- [Node selector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) configuration.
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
# -- [Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for node taints.
|
||||||
|
# See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling) for details.
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
# -- Enable [ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/).
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Ingress [class name](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class).
|
||||||
|
className: ""
|
||||||
|
|
||||||
|
# -- Annotations to be added to the ingress.
|
||||||
|
annotations: {}
|
||||||
|
# kubernetes.io/ingress.class: nginx
|
||||||
|
# kubernetes.io/tls-acme: "true"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user