move to manifest
This commit is contained in:
24
manifest/envoy-gateway/envoy-proxy.yaml
Normal file
24
manifest/envoy-gateway/envoy-proxy.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: gateway.envoyproxy.io/v1alpha1
|
||||
kind: EnvoyProxy
|
||||
metadata:
|
||||
name: envoy-daemon-proxy
|
||||
namespace: envoy-gateway-system
|
||||
spec:
|
||||
provider:
|
||||
type: Kubernetes
|
||||
kubernetes:
|
||||
envoyDaemonSet:
|
||||
pod:
|
||||
# annotations:
|
||||
# prometheus.io/scrape: "true"
|
||||
# prometheus.io/port: "19001"
|
||||
container:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
memory: 1024Mi
|
||||
envoyService:
|
||||
type: LoadBalancer
|
||||
externalTrafficPolicy: Cluster
|
||||
34
manifest/envoy-gateway/gateway.yaml
Normal file
34
manifest/envoy-gateway/gateway.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: envoy-gateway
|
||||
namespace: envoy-gateway-system
|
||||
spec:
|
||||
gatewayClassName: envoy-gateway-class
|
||||
infrastructure:
|
||||
parametersRef:
|
||||
group: gateway.envoyproxy.io
|
||||
kind: EnvoyProxy
|
||||
name: envoy-daemon-proxy
|
||||
listeners:
|
||||
- allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
name: http
|
||||
port: 80
|
||||
protocol: HTTP
|
||||
- allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
name: https
|
||||
port: 443
|
||||
protocol: TLS
|
||||
#tls:
|
||||
#mode: Passthrough
|
||||
tls:
|
||||
mode: Terminate
|
||||
certificateRefs:
|
||||
- kind: Secret
|
||||
group: ""
|
||||
name: argocd-fireflylab-tls
|
||||
|
||||
6
manifest/envoy-gateway/gatewayclass.yaml
Normal file
6
manifest/envoy-gateway/gatewayclass.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: GatewayClass
|
||||
metadata:
|
||||
name: envoy-gateway-class
|
||||
spec:
|
||||
controllerName: gateway.envoyproxy.io/gatewayclass-controller
|
||||
75
manifest/envoy-gateway/quickstart.yaml
Normal file
75
manifest/envoy-gateway/quickstart.yaml
Normal file
@@ -0,0 +1,75 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: backend
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: backend
|
||||
labels:
|
||||
app: backend
|
||||
service: backend
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
selector:
|
||||
app: backend
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: backend
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: backend
|
||||
version: v1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: backend
|
||||
version: v1
|
||||
spec:
|
||||
serviceAccountName: backend
|
||||
containers:
|
||||
- image: gcr.io/k8s-staging-gateway-api/echo-basic:v20231214-v1.0.0-140-gf544a46e
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: backend
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: backend
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: envoy-gateway
|
||||
namespace: envoy-gateway-system
|
||||
hostnames:
|
||||
- "example.fireflylab.local"
|
||||
rules:
|
||||
- backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: backend
|
||||
port: 3000
|
||||
weight: 1
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
|
||||
148
manifest/envoy-gateway/values.yaml
Normal file
148
manifest/envoy-gateway/values.yaml
Normal file
@@ -0,0 +1,148 @@
|
||||
# Global settings
|
||||
global:
|
||||
# If set, these take highest precedence and change both envoyGateway and ratelimit's container registry and pull secrets.
|
||||
# -- Global override for image registry
|
||||
imageRegistry: ""
|
||||
# -- Global override for image pull secrets
|
||||
imagePullSecrets: []
|
||||
|
||||
# If set, these override image-specific values: useful when installing the chart in a private registry environment.
|
||||
# Override image-specific values directly if a global override is not desired.
|
||||
images:
|
||||
envoyGateway:
|
||||
# This is the full image name including the hub, repo, and tag.
|
||||
image: docker.io/envoyproxy/gateway:v1.7.1
|
||||
# Specify image pull policy if default behavior isn't desired.
|
||||
# Default behavior: latest images will be Always else IfNotPresent.
|
||||
pullPolicy: IfNotPresent
|
||||
# List of secrets in the same namespace of the component that can be used to pull images from private repositories.
|
||||
pullSecrets: []
|
||||
ratelimit:
|
||||
# This is the full image name including the hub, repo, and tag.
|
||||
image: "docker.io/envoyproxy/ratelimit:c8765e89"
|
||||
# Specify image pull policy if default behavior isn't desired.
|
||||
# Default behavior: latest images will be Always else IfNotPresent.
|
||||
pullPolicy: IfNotPresent
|
||||
# List of secrets in the same namespace of the component that can be used to pull images from private repositories.
|
||||
pullSecrets: []
|
||||
|
||||
podDisruptionBudget:
|
||||
minAvailable: 0
|
||||
# maxUnavailable: 1
|
||||
|
||||
deployment:
|
||||
annotations: {}
|
||||
envoyGateway:
|
||||
image:
|
||||
# if both this and global.imageRegistry are specified, this has to include both registry and repository explicitly, eg docker.io/envoyproxy/gateway
|
||||
repository: ""
|
||||
tag: ""
|
||||
imagePullPolicy: ""
|
||||
imagePullSecrets: []
|
||||
resources:
|
||||
limits:
|
||||
memory: 1024Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
privileged: false
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
ports:
|
||||
- name: grpc
|
||||
port: 18000
|
||||
targetPort: 18000
|
||||
- name: ratelimit
|
||||
port: 18001
|
||||
targetPort: 18001
|
||||
- name: wasm
|
||||
port: 18002
|
||||
targetPort: 18002
|
||||
- name: metrics
|
||||
port: 19001
|
||||
targetPort: 19001
|
||||
priorityClassName: null
|
||||
replicas: 1
|
||||
pod:
|
||||
affinity: {}
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/port: '19001'
|
||||
labels: {}
|
||||
topologySpreadConstraints: []
|
||||
tolerations: []
|
||||
nodeSelector: {}
|
||||
|
||||
service:
|
||||
# If set to PreferClose, the Envoy fleet will prioritize connecting to the Envoy Gateway pods that are topologically closest to them.
|
||||
trafficDistribution: ""
|
||||
annotations: {}
|
||||
# -- Service type. Can be set to LoadBalancer with specific IP, e.g.:
|
||||
# type: LoadBalancer
|
||||
loadBalancerIP: 192.168.1.30
|
||||
type: "ClusterIP"
|
||||
|
||||
hpa:
|
||||
enabled: false
|
||||
minReplicas: 1
|
||||
maxReplicas: 1
|
||||
metrics: []
|
||||
behavior: {}
|
||||
|
||||
config:
|
||||
# -- EnvoyGateway configuration. Visit https://gateway.envoyproxy.io/docs/api/extension_types/#envoygateway to view all options.
|
||||
envoyGateway:
|
||||
gateway:
|
||||
controllerName: gateway.envoyproxy.io/gatewayclass-controller
|
||||
provider:
|
||||
type: Kubernetes
|
||||
logging:
|
||||
level:
|
||||
default: info
|
||||
extensionApis: {}
|
||||
|
||||
createNamespace: false
|
||||
|
||||
kubernetesClusterDomain: cluster.local
|
||||
|
||||
# -- Certgen is used to generate the certificates required by EnvoyGateway. If you want to construct a custom certificate, you can generate a custom certificate through Cert-Manager before installing EnvoyGateway. Certgen will not overwrite the custom certificate. Please do not manually modify `values.yaml` to disable certgen, it may cause EnvoyGateway OIDC,OAuth2,etc. to not work as expected.
|
||||
certgen:
|
||||
job:
|
||||
annotations: {}
|
||||
args: []
|
||||
pod:
|
||||
annotations: {}
|
||||
labels: {}
|
||||
resources: {}
|
||||
affinity: {}
|
||||
tolerations: []
|
||||
nodeSelector: {}
|
||||
ttlSecondsAfterFinished: 30
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
privileged: false
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsGroup: 65532
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
rbac:
|
||||
annotations: {}
|
||||
labels: {}
|
||||
|
||||
topologyInjector:
|
||||
enabled: true
|
||||
annotations: {}
|
||||
|
||||
Reference in New Issue
Block a user