Skip to content

Instantly share code, notes, and snippets.

@alicek106
Last active April 13, 2020 13:35
Show Gist options
  • Save alicek106/3eacdc1e0aec288b160042dd85a41615 to your computer and use it in GitHub Desktop.
Save alicek106/3eacdc1e0aec288b160042dd85a41615 to your computer and use it in GitHub Desktop.
deployment-if-no-file-sleep.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: ingress-annotation-test
namespace: example-app
labels:
app: ingress-annotation-test
spec:
replicas: 3
selector:
matchLabels:
app: ingress-annotation-test
template:
metadata:
labels:
app: ingress-annotation-test
spec:
containers:
- name: ingress-annotation-test
image: alicek106/ingress-annotation-test:timeout-test
ports:
- name: flask
containerPort: 80
imagePullPolicy: Always
env:
- name: SLEEP_INTERVAL
value: "1"
---
apiVersion: v1
kind: Service
metadata:
name: ingress-annotation-test-svc
namespace: example-app
spec:
ports:
- name: web
port: 80
targetPort: flask
selector:
app: ingress-annotation-test
type: ClusterIP
---
apiVersion: v1
kind: Namespace
metadata:
labels:
istio-injection: enabled
name: example-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment