refator: refacoting, replace ssl by tls
This commit is contained in:
@@ -90,4 +90,48 @@ gateway:
|
||||
directory: /etc/goma/extra
|
||||
watch: true
|
||||
routes: []
|
||||
```
|
||||
|
||||
## Advanced Kubernetes deployment
|
||||
|
||||
```yaml
|
||||
apiVersion: gomaproj.github.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
labels: {}
|
||||
name: gateway-sample
|
||||
spec:
|
||||
# The version of Goma Gateway
|
||||
# See: https://github.com/jkaninda/goma-gateway/releases
|
||||
gatewayVersion: latest # 0.2.2
|
||||
server:
|
||||
# Kubernetes tls secret name
|
||||
tlsSecretName: '' #Optional, tls-secret
|
||||
#Redis configs for distributed rate limiting across multiple instances
|
||||
redis:
|
||||
addr: '' #Optional, redis:6379
|
||||
password: '' #Optional, password
|
||||
writeTimeout: 10
|
||||
readTimeout: 15
|
||||
idleTimeout: 35
|
||||
logLevel: info
|
||||
disableHealthCheckStatus: true
|
||||
disableKeepAlive: false
|
||||
enableMetrics: true
|
||||
# Replicas count
|
||||
replicaCount: 1
|
||||
resources:
|
||||
limits:
|
||||
cpu: 250m
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
autoScaling:
|
||||
enabled: true
|
||||
minReplicas: 2
|
||||
maxReplicas: 5
|
||||
targetCPUUtilizationPercentage: 80
|
||||
targetMemoryUtilizationPercentage: 80
|
||||
affinity: {}
|
||||
```
|
||||
@@ -189,4 +189,37 @@ gateway:
|
||||
middlewares:
|
||||
- api-forbidden-paths
|
||||
- jwt-auth
|
||||
```
|
||||
## Advanced Kubernetes deployment
|
||||
|
||||
```yaml
|
||||
apiVersion: gomaproj.github.io/v1beta1
|
||||
kind: Route
|
||||
metadata:
|
||||
labels: {}
|
||||
name: route-sample
|
||||
spec:
|
||||
gateway: gateway-sample
|
||||
path: /
|
||||
hosts: []
|
||||
rewrite: /g
|
||||
methods: [GET]
|
||||
destination: https://example.com
|
||||
backends: []
|
||||
insecureSkipVerify: true
|
||||
healthCheck:
|
||||
path: /
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
healthyStatuses:
|
||||
- 200
|
||||
- 404
|
||||
cors:
|
||||
origins: []
|
||||
headers: {}
|
||||
disableHostFording: true
|
||||
blockCommonExploits: true
|
||||
middlewares:
|
||||
- basic-middleware-sample
|
||||
- ratelimit
|
||||
```
|
||||
@@ -1,19 +1,19 @@
|
||||
---
|
||||
title: SSL Certificate
|
||||
title: TLS Certificate
|
||||
layout: default
|
||||
parent: Quickstart
|
||||
nav_order: 5
|
||||
---
|
||||
|
||||
|
||||
# SSL Certificate
|
||||
# TLS Certificate
|
||||
|
||||
|
||||
|
||||
```yaml
|
||||
version: 1.0
|
||||
gateway:
|
||||
sslCertFile: cert.pem
|
||||
sslKeyFile: key.pem
|
||||
tlsCertFile: cert.pem
|
||||
tlsKeyFile: key.pem
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user