Skip to content

Commit

Permalink
Update Istio to 1.19.3 (#73)
Browse files Browse the repository at this point in the history
* Update Istio to 1.19.3

* upgrade sidecar patch

* update volumes to match latest istio

* update loadtester proxy patch

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mitch Connors <mitchconnors@gmail.com>
  • Loading branch information
3 people authored Nov 2, 2023
1 parent dc05372 commit e53470d
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 27 deletions.
29 changes: 23 additions & 6 deletions apps/backend/deployment.patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
- --proxyLogLevel=warning
- --proxyComponentLogLevel=misc:error
- --log_output_level=default:info
- --concurrency
- "2"
env:
- name: JWT_POLICY
value: third-party-jwt
Expand Down Expand Up @@ -71,6 +69,11 @@
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: ISTIO_CPU_LIMIT
valueFrom:
resourceFieldRef:
divisor: '0'
resource: limits.cpu
- name: PROXY_CONFIG
value: |
{}
Expand All @@ -83,6 +86,11 @@
value: backend
- name: ISTIO_META_CLUSTER_ID
value: Kubernetes
- name: ISTIO_META_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: ISTIO_META_INTERCEPTION_MODE
value: REDIRECT
- name: ISTIO_META_WORKLOAD_NAME
Expand Down Expand Up @@ -127,6 +135,12 @@
runAsNonRoot: true
runAsUser: 1337
volumeMounts:
- mountPath: /var/run/secrets/workload-spiffe-uds
name: workload-socket
- mountPath: /var/run/secrets/credential-uds
name: credential-socket
- mountPath: /var/run/secrets/workload-spiffe-credentials
name: workload-certs
- mountPath: /var/run/secrets/istio
name: istiod-ca-cert
- mountPath: /var/lib/istio/data
Expand Down Expand Up @@ -158,6 +172,7 @@
- '*'
- -d
- 15090,15021,15020
- --log_output_level=default:info
image: docker.io/istio/proxyv2:1.18.5
name: istio-init
resources:
Expand All @@ -180,13 +195,15 @@
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
- op: add
path: /spec/template/spec/securityContext
value:
fsGroup: 1337
- op: add
path: /spec/template/spec/volumes
value:
- emptyDir: {}
name: workload-socket
- emptyDir: {}
name: credential-socket
- emptyDir: {}
name: workload-certs
- emptyDir:
medium: Memory
name: istio-envoy
Expand Down
29 changes: 23 additions & 6 deletions apps/frontend/deployment.patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
- --proxyLogLevel=warning
- --proxyComponentLogLevel=misc:error
- --log_output_level=default:info
- --concurrency
- "2"
env:
- name: JWT_POLICY
value: third-party-jwt
Expand Down Expand Up @@ -71,6 +69,11 @@
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: ISTIO_CPU_LIMIT
valueFrom:
resourceFieldRef:
divisor: '0'
resource: limits.cpu
- name: PROXY_CONFIG
value: |
{}
Expand All @@ -83,6 +86,11 @@
value: frontend
- name: ISTIO_META_CLUSTER_ID
value: Kubernetes
- name: ISTIO_META_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: ISTIO_META_INTERCEPTION_MODE
value: REDIRECT
- name: ISTIO_META_WORKLOAD_NAME
Expand Down Expand Up @@ -127,6 +135,12 @@
runAsNonRoot: true
runAsUser: 1337
volumeMounts:
- mountPath: /var/run/secrets/workload-spiffe-uds
name: workload-socket
- mountPath: /var/run/secrets/credential-uds
name: credential-socket
- mountPath: /var/run/secrets/workload-spiffe-credentials
name: workload-certs
- mountPath: /var/run/secrets/istio
name: istiod-ca-cert
- mountPath: /var/lib/istio/data
Expand Down Expand Up @@ -158,6 +172,7 @@
- '*'
- -d
- 15090,15021,15020
- --log_output_level=default:info
image: docker.io/istio/proxyv2:1.18.5
name: istio-init
resources:
Expand All @@ -180,13 +195,15 @@
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
- op: add
path: /spec/template/spec/securityContext
value:
fsGroup: 1337
- op: add
path: /spec/template/spec/volumes
value:
- emptyDir: {}
name: workload-socket
- emptyDir: {}
name: credential-socket
- emptyDir: {}
name: workload-certs
- emptyDir:
medium: Memory
name: istio-envoy
Expand Down
42 changes: 28 additions & 14 deletions apps/loadtest/deployment.patch.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
- op: add
path: /metadata/creationTimestamp
value: null
- op: add
path: /spec/strategy
value: {}
- op: add
path: /spec/template/metadata/annotations/kubectl.kubernetes.io~1default-container
value: loadtester
Expand All @@ -27,13 +24,13 @@
value: istio
- op: add
path: /spec/template/metadata/labels/service.istio.io~1canonical-name
value: flagger-loadtester
value: loadtester
- op: add
path: /spec/template/metadata/labels/service.istio.io~1canonical-revision
value: latest
- op: replace
path: /spec/template/spec/containers/0/resources/limits/cpu
value: "1"
value: "2"
- op: add
path: /spec/template/spec/containers/1
value:
Expand All @@ -45,8 +42,6 @@
- --proxyLogLevel=warning
- --proxyComponentLogLevel=misc:error
- --log_output_level=default:info
- --concurrency
- "2"
env:
- name: JWT_POLICY
value: third-party-jwt
Expand Down Expand Up @@ -74,24 +69,34 @@
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: ISTIO_CPU_LIMIT
valueFrom:
resourceFieldRef:
divisor: '0'
resource: limits.cpu
- name: PROXY_CONFIG
value: |
{}
- name: ISTIO_META_POD_PORTS
value: |-
[
{"name":"http","containerPort":8080}
{"name":"http","containerPort":9898,"protocol":"TCP"}
]
- name: ISTIO_META_APP_CONTAINERS
value: loadtester
- name: ISTIO_META_CLUSTER_ID
value: Kubernetes
- name: ISTIO_META_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: ISTIO_META_INTERCEPTION_MODE
value: REDIRECT
- name: ISTIO_META_WORKLOAD_NAME
value: flagger-loadtester
value: loadtester
- name: ISTIO_META_OWNER
value: kubernetes://apis/apps/v1/namespaces/prod/deployments/flagger-loadtester
value: kubernetes://apis/apps/v1/namespaces/prod/deployments/loadtester
- name: ISTIO_META_MESH_ID
value: cluster.local
- name: TRUST_DOMAIN
Expand Down Expand Up @@ -130,6 +135,12 @@
runAsNonRoot: true
runAsUser: 1337
volumeMounts:
- mountPath: /var/run/secrets/workload-spiffe-uds
name: workload-socket
- mountPath: /var/run/secrets/credential-uds
name: credential-socket
- mountPath: /var/run/secrets/workload-spiffe-credentials
name: workload-certs
- mountPath: /var/run/secrets/istio
name: istiod-ca-cert
- mountPath: /var/lib/istio/data
Expand Down Expand Up @@ -161,6 +172,7 @@
- '*'
- -d
- 15090,15021,15020
- --log_output_level=default:info
image: docker.io/istio/proxyv2:1.18.5
name: istio-init
resources:
Expand All @@ -183,13 +195,15 @@
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
- op: add
path: /spec/template/spec/securityContext
value:
fsGroup: 1337
- op: add
path: /spec/template/spec/volumes
value:
- emptyDir: {}
name: workload-socket
- emptyDir: {}
name: credential-socket
- emptyDir: {}
name: workload-certs
- emptyDir:
medium: Memory
name: istio-envoy
Expand Down
2 changes: 1 addition & 1 deletion clusters/my-cluster/istio-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
annotations:
kustomize.toolkit.fluxcd.io/ssa: merge
data:
version: 1.18.5
version: 1.19.3

0 comments on commit e53470d

Please sign in to comment.