-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update TestDeployment (#2721)
* chore: update TestDeployment Signed-off-by: zirain <[email protected]> * lint Signed-off-by: zirain <[email protected]> * use go.testdata.complete Signed-off-by: zirain <[email protected]> --------- Signed-off-by: zirain <[email protected]> Co-authored-by: Xunzhuo <[email protected]>
- Loading branch information
Showing
21 changed files
with
4,346 additions
and
3,897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
258 changes: 134 additions & 124 deletions
258
internal/infrastructure/kubernetes/proxy/testdata/deployments/bootstrap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,161 +1,171 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/name: envoy | ||
app.kubernetes.io/component: proxy | ||
app.kubernetes.io/managed-by: envoy-gateway | ||
app.kubernetes.io/name: envoy | ||
gateway.envoyproxy.io/owning-gateway-name: default | ||
gateway.envoyproxy.io/owning-gateway-namespace: default | ||
name: envoy-default-37a8eec1 | ||
namespace: envoy-gateway-system | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
strategy: | ||
type: RollingUpdate | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: envoy | ||
app.kubernetes.io/component: proxy | ||
app.kubernetes.io/managed-by: envoy-gateway | ||
app.kubernetes.io/name: envoy | ||
gateway.envoyproxy.io/owning-gateway-name: default | ||
gateway.envoyproxy.io/owning-gateway-namespace: default | ||
strategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
prometheus.io/path: /stats/prometheus | ||
prometheus.io/port: "19001" | ||
prometheus.io/scrape: "true" | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/name: envoy | ||
app.kubernetes.io/component: proxy | ||
app.kubernetes.io/managed-by: envoy-gateway | ||
app.kubernetes.io/name: envoy | ||
gateway.envoyproxy.io/owning-gateway-name: default | ||
gateway.envoyproxy.io/owning-gateway-namespace: default | ||
spec: | ||
automountServiceAccountToken: false | ||
containers: | ||
- args: | ||
- --service-cluster default | ||
- --service-node $(ENVOY_POD_NAME) | ||
- --config-yaml test bootstrap config | ||
- --log-level warn | ||
- --cpuset-threads | ||
command: | ||
- envoy | ||
env: | ||
- name: ENVOY_GATEWAY_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.namespace | ||
- name: ENVOY_POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.name | ||
image: envoyproxy/envoy:distroless-dev | ||
imagePullPolicy: IfNotPresent | ||
lifecycle: | ||
preStop: | ||
httpGet: | ||
path: /shutdown/ready | ||
port: 19002 | ||
scheme: HTTP | ||
name: envoy | ||
ports: | ||
- containerPort: 8080 | ||
name: EnvoyH-d76a15e2 | ||
protocol: TCP | ||
- containerPort: 8443 | ||
name: EnvoyH-6658f727 | ||
protocol: TCP | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 512Mi | ||
readinessProbe: | ||
httpGet: | ||
path: /ready | ||
port: 19001 | ||
scheme: HTTP | ||
timeoutSeconds: 1 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /certs | ||
name: certs | ||
readOnly: true | ||
- mountPath: /sds | ||
name: sds | ||
- args: | ||
- envoy | ||
- shutdown-manager | ||
command: | ||
- envoy-gateway | ||
env: | ||
- name: ENVOY_GATEWAY_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.namespace | ||
- name: ENVOY_POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.name | ||
image: envoyproxy/gateway-dev:latest | ||
imagePullPolicy: IfNotPresent | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: | ||
- envoy-gateway | ||
- envoy | ||
- shutdown | ||
name: shutdown-manager | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 32Mi | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 19002 | ||
scheme: HTTP | ||
timeoutSeconds: 1 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
livenessProbe: | ||
- args: | ||
- --service-cluster default | ||
- --service-node $(ENVOY_POD_NAME) | ||
- --config-yaml test bootstrap config | ||
- --log-level warn | ||
- --cpuset-threads | ||
command: | ||
- envoy | ||
env: | ||
- name: ENVOY_GATEWAY_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.namespace | ||
- name: ENVOY_POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.name | ||
image: envoyproxy/envoy:distroless-dev | ||
imagePullPolicy: IfNotPresent | ||
lifecycle: | ||
preStop: | ||
httpGet: | ||
path: /healthz | ||
path: /shutdown/ready | ||
port: 19002 | ||
scheme: HTTP | ||
timeoutSeconds: 1 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
name: envoy | ||
ports: | ||
- containerPort: 8080 | ||
name: EnvoyH-d76a15e2 | ||
protocol: TCP | ||
- containerPort: 8443 | ||
name: EnvoyH-6658f727 | ||
protocol: TCP | ||
- containerPort: 19001 | ||
name: metrics | ||
protocol: TCP | ||
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /ready | ||
port: 19001 | ||
scheme: HTTP | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 512Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /certs | ||
name: certs | ||
readOnly: true | ||
- mountPath: /sds | ||
name: sds | ||
- args: | ||
- envoy | ||
- shutdown-manager | ||
command: | ||
- envoy-gateway | ||
env: | ||
- name: ENVOY_GATEWAY_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.namespace | ||
- name: ENVOY_POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.name | ||
image: envoyproxy/gateway-dev:latest | ||
imagePullPolicy: IfNotPresent | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: | ||
- envoy-gateway | ||
- envoy | ||
- shutdown | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /healthz | ||
port: 19002 | ||
scheme: HTTP | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
name: shutdown-manager | ||
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /healthz | ||
port: 19002 | ||
scheme: HTTP | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 32Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
serviceAccountName: envoy-default-37a8eec1 | ||
terminationGracePeriodSeconds: 900 | ||
volumes: | ||
- name: certs | ||
secret: | ||
secretName: envoy | ||
defaultMode: 420 | ||
- configMap: | ||
defaultMode: 420 | ||
items: | ||
- key: xds-trusted-ca.json | ||
path: xds-trusted-ca.json | ||
- key: xds-certificate.json | ||
path: xds-certificate.json | ||
name: envoy-default-37a8eec1 | ||
optional: false | ||
name: sds | ||
revisionHistoryLimit: 10 | ||
progressDeadlineSeconds: 600 | ||
- name: certs | ||
secret: | ||
defaultMode: 420 | ||
secretName: envoy | ||
- configMap: | ||
defaultMode: 420 | ||
items: | ||
- key: xds-trusted-ca.json | ||
path: xds-trusted-ca.json | ||
- key: xds-certificate.json | ||
path: xds-certificate.json | ||
name: envoy-default-37a8eec1 | ||
optional: false | ||
name: sds | ||
status: {} |
Oops, something went wrong.