Skip to content

Instantly share code, notes, and snippets.

@dangtrinhnt
Last active October 7, 2019 09:53
Show Gist options
  • Save dangtrinhnt/66eab84d7de94dd5529f684ead44c283 to your computer and use it in GitHub Desktop.
Save dangtrinhnt/66eab84d7de94dd5529f684ead44c283 to your computer and use it in GitHub Desktop.
Exclude Istio's sidecar injection sample
apiVersion: batch/v1
kind: Job
metadata:
name: MyService
namespace: ABC
spec:
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
name: MyService
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
backoffLimit: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment