Skip to content

Commit

Permalink
test with custom image, revet this commit before merge
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain committed Oct 28, 2024
1 parent 014cea1 commit 6a88c0c
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
// DefaultShutdownManagerImage is the default image used for the shutdown manager.
DefaultShutdownManagerImage = "envoyproxy/gateway-dev:latest"
// DefaultRateLimitImage is the default image used by ratelimit.
DefaultRateLimitImage = "envoyproxy/ratelimit:master"
DefaultRateLimitImage = "ghcr.io/zirain-dev/ratelimit:latest"
// HTTPProtocol is the common-used http protocol.
HTTPProtocol = "http"
// GRPCProtocol is the common-used grpc protocol.
Expand Down
4 changes: 4 additions & 0 deletions internal/infrastructure/kubernetes/ratelimit/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ func expectedRateLimitContainerEnv(rateLimit *egv1a1.RateLimit, rateLimitDeploym
namespace string,
) []corev1.EnvVar {
env := []corev1.EnvVar{
{
Name: "PROTO",
Value: "tcp6",
},
{
Name: RuntimeRootEnvVar,
Value: "/data",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -86,7 +88,7 @@ spec:
value: :19001
- name: PROMETHEUS_MAPPER_YAML
value: /etc/statsd-exporter/conf.yaml
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -76,7 +78,7 @@ spec:
value: tcp
- name: REDIS_URL
value: redis.redis.svc:6379
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -101,7 +103,7 @@ spec:
value: "0.6"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://trace-collector.envoy-gateway-system.svc.cluster.local:4317
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -101,7 +103,7 @@ spec:
value: "1.0"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://trace-collector.envoy-gateway-system.svc.cluster.local:4318
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -88,7 +90,7 @@ spec:
value: :19001
- name: PROMETHEUS_MAPPER_YAML
value: /etc/statsd-exporter/conf.yaml
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -88,7 +90,7 @@ spec:
value: :19001
- name: PROMETHEUS_MAPPER_YAML
value: /etc/statsd-exporter/conf.yaml
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -86,7 +88,7 @@ spec:
value: :19001
- name: PROMETHEUS_MAPPER_YAML
value: /etc/statsd-exporter/conf.yaml
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -86,7 +88,7 @@ spec:
value: :19001
- name: PROMETHEUS_MAPPER_YAML
value: /etc/statsd-exporter/conf.yaml
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
- command:
- /bin/ratelimit
env:
- name: PROTO
value: tcp6
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
Expand Down Expand Up @@ -86,7 +88,7 @@ spec:
value: :19001
- name: PROMETHEUS_MAPPER_YAML
value: /etc/statsd-exporter/conf.yaml
image: envoyproxy/ratelimit:master
image: ghcr.io/zirain-dev/ratelimit:latest
imagePullPolicy: IfNotPresent
name: envoy-ratelimit
ports:
Expand Down

0 comments on commit 6a88c0c

Please sign in to comment.