Fix HELM chart
This commit is contained in:
parent
7c9da241a3
commit
beb7dfb223
2 changed files with 53 additions and 13 deletions
|
|
@ -3,12 +3,12 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: manual-easyhaproxy-ingress
|
name: byjg-easyhaproxy-ingress
|
||||||
namespace: easyhaproxy
|
namespace: easyhaproxy
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
||||||
app.kubernetes.io/name: easyhaproxy-ingress
|
app.kubernetes.io/name: easyhaproxy-ingress
|
||||||
app.kubernetes.io/instance: manual
|
app.kubernetes.io/instance: byjg
|
||||||
app.kubernetes.io/version: "test"
|
app.kubernetes.io/version: "test"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
---
|
---
|
||||||
|
|
@ -16,12 +16,12 @@ metadata:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: manual-easyhaproxy-ingress
|
name: byjg-easyhaproxy-ingress
|
||||||
namespace: easyhaproxy
|
namespace: easyhaproxy
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
||||||
app.kubernetes.io/name: easyhaproxy-ingress
|
app.kubernetes.io/name: easyhaproxy-ingress
|
||||||
app.kubernetes.io/instance: manual
|
app.kubernetes.io/instance: byjg
|
||||||
app.kubernetes.io/version: "test"
|
app.kubernetes.io/version: "test"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
rules:
|
rules:
|
||||||
|
|
@ -82,45 +82,45 @@ rules:
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: manual-easyhaproxy-ingress
|
name: byjg-easyhaproxy-ingress
|
||||||
namespace: easyhaproxy
|
namespace: easyhaproxy
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
||||||
app.kubernetes.io/name: easyhaproxy-ingress
|
app.kubernetes.io/name: easyhaproxy-ingress
|
||||||
app.kubernetes.io/instance: manual
|
app.kubernetes.io/instance: byjg
|
||||||
app.kubernetes.io/version: "test"
|
app.kubernetes.io/version: "test"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: manual-easyhaproxy-ingress
|
name: byjg-easyhaproxy-ingress
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: manual-easyhaproxy-ingress
|
name: byjg-easyhaproxy-ingress
|
||||||
namespace: easyhaproxy
|
namespace: easyhaproxy
|
||||||
---
|
---
|
||||||
# Source: easyhaproxy-ingress/templates/deployment.yaml
|
# Source: easyhaproxy-ingress/templates/deployment.yaml
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
name: manual-easyhaproxy-ingress
|
name: byjg-easyhaproxy-ingress
|
||||||
namespace: easyhaproxy
|
namespace: easyhaproxy
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
helm.sh/chart: easyhaproxy-ingress-0.1.0
|
||||||
app.kubernetes.io/name: easyhaproxy-ingress
|
app.kubernetes.io/name: easyhaproxy-ingress
|
||||||
app.kubernetes.io/instance: manual
|
app.kubernetes.io/instance: byjg
|
||||||
app.kubernetes.io/version: "test"
|
app.kubernetes.io/version: "test"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: easyhaproxy-ingress
|
app.kubernetes.io/name: easyhaproxy-ingress
|
||||||
app.kubernetes.io/instance: manual
|
app.kubernetes.io/instance: byjg
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: easyhaproxy-ingress
|
app.kubernetes.io/name: easyhaproxy-ingress
|
||||||
app.kubernetes.io/instance: manual
|
app.kubernetes.io/instance: byjg
|
||||||
spec:
|
spec:
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
|
|
@ -131,7 +131,7 @@ spec:
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- master
|
- master
|
||||||
serviceAccountName: manual-easyhaproxy-ingress
|
serviceAccountName: byjg-easyhaproxy-ingress
|
||||||
securityContext:
|
securityContext:
|
||||||
{}
|
{}
|
||||||
containers:
|
containers:
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,10 @@ kubectl label nodes node-01 "easyhaproxy/node=master"
|
||||||
|
|
||||||
3. Install EasyHAProxy
|
3. Install EasyHAProxy
|
||||||
|
|
||||||
|
There are two ways to install EasyHAProxy in a Kubernetes cluster. You can use Kubernetes Manifest or Helm 3.
|
||||||
|
|
||||||
|
3.1. Using Kubernetes Manifest
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl apply -f \
|
kubectl apply -f \
|
||||||
https://raw.githubusercontent.com/haproxytech/kubernetes-ingress/master/deploy/haproxy-ingress-daemonset.yaml
|
https://raw.githubusercontent.com/haproxytech/kubernetes-ingress/master/deploy/haproxy-ingress-daemonset.yaml
|
||||||
|
|
@ -35,6 +39,42 @@ kubectl apply -f \
|
||||||
|
|
||||||
You can configure the behavior of the EasyHAProxy by setup specific environment variables. To get a list of the variables please follow the [docker container environment](docker-environment.md)
|
You can configure the behavior of the EasyHAProxy by setup specific environment variables. To get a list of the variables please follow the [docker container environment](docker-environment.md)
|
||||||
|
|
||||||
|
3.2. Using HELM 3
|
||||||
|
|
||||||
|
Minimal configuration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
helm repo add byjg https://opensource.byjg.com/helm
|
||||||
|
helm repo update
|
||||||
|
kubectl create namespace easyhaproxy
|
||||||
|
helm upgrade --install byjg byjg/easyhaproxy-ingress \
|
||||||
|
--namespace easyhaproxy
|
||||||
|
--set resources.requests.cpu=100m \
|
||||||
|
--set resources.requests.memory=128Mi
|
||||||
|
```
|
||||||
|
|
||||||
|
Customizing Helm Values:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
easyhaproxy:
|
||||||
|
stats:
|
||||||
|
username: admin
|
||||||
|
password: password
|
||||||
|
refresh: "10"
|
||||||
|
customErrors: "true"
|
||||||
|
sslMode: loose
|
||||||
|
logLevel:
|
||||||
|
certbot: DEBUG
|
||||||
|
easyhaproxy: DEBUG
|
||||||
|
haproxy: DEBUG
|
||||||
|
|
||||||
|
# Make sure to create this
|
||||||
|
masterNode:
|
||||||
|
label: easyhaproxy/node
|
||||||
|
values:
|
||||||
|
- master
|
||||||
|
```
|
||||||
|
|
||||||
## Running containers
|
## Running containers
|
||||||
|
|
||||||
The only requirement is that you have an ingress properly setup and with the annotation `kubernetes.io/ingress.class: easyhaproxy-ingress`.
|
The only requirement is that you have an ingress properly setup and with the annotation `kubernetes.io/ingress.class: easyhaproxy-ingress`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue