Initial commit
Some checks failed
Tests / Run on Ubuntu (push) Has been cancelled
E2E Tests / Run on Ubuntu (push) Has been cancelled
Lint / Run on Ubuntu (push) Failing after 23m29s

This commit is contained in:
Jonas Kaninda
2024-11-27 08:29:51 +01:00
commit 59e2f0164b
73 changed files with 8334 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
apiVersion: gomaproj.github.io/v1beta1
kind: Gateway
metadata:
labels:
app.kubernetes.io/name: goma-operator
app.kubernetes.io/managed-by: kustomize
name: gateway-sample
spec:
gatewayVersion: latest
server:
writeTimeout: 10
readTimeout: 15
idleTimeout: 30
logLevel: info
disableHealthCheckStatus: false
disableKeepAlive: false
enableMetrics: true
replicaCount: 1
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
autoScaling:
enabled: true
minReplicas: 2
maxReplicas: 5
targetCPUUtilizationPercentage: 80

View File

@@ -0,0 +1,14 @@
apiVersion: gomaproj.github.io/v1beta1
kind: Middleware
metadata:
labels:
app.kubernetes.io/name: goma-operator
app.kubernetes.io/managed-by: kustomize
name: middleware-sample
spec:
type: basic
paths:
- /*
rule:
username: admin
password: admin

View File

@@ -0,0 +1,35 @@
apiVersion: gomaproj.github.io/v1beta1
kind: Route
metadata:
labels:
app.kubernetes.io/name: goma-operator
app.kubernetes.io/managed-by: kustomize
name: route-sample
spec:
gateway: gateway-sample
routes:
- path: /
name: Example
hosts: []
rewrite: /
methods:
- GET
destination: https://example.com
backends: []
insecureSkipVerify: false
healthCheck:
path: /
interval: 10s
timeout: 10s
healthyStatuses:
- 200
- 404
cors:
origins: []
headers: {}
rateLimit: 15
disableHostFording: true
interceptErrors: []
blockCommonExploits: false
middlewares:
- middleware-sample

View File

@@ -0,0 +1,6 @@
## Append samples of your project ##
resources:
- gomaproj_v1beta1_gateway.yaml
- gomaproj_v1beta1_route.yaml
- gomaproj_v1beta1_middleware.yaml
# +kubebuilder:scaffold:manifestskustomizesamples