Add Istio ingress to v1alpha3, remove v1alpha2

This commit is contained in:
Stefan Prodan
2018-04-20 01:03:16 +03:00
parent b104769f20
commit 0c84164b65
7 changed files with 2 additions and 226 deletions
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: podinfo
namespace: test
annotations:
kubernetes.io/ingress.class: istio
spec:
@@ -11,5 +12,5 @@ spec:
paths:
- path: /.*
backend:
serviceName: podinfo
serviceName: podinfo.test
servicePort: 9898
-52
View File
@@ -1,52 +0,0 @@
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: podinfo-canary
labels:
app: podinfo
release: canary
spec:
replicas: 2
selector:
matchLabels:
app: podinfo
release: canary
template:
metadata:
labels:
app: podinfo
release: canary
annotations:
prometheus.io/scrape: 'true'
spec:
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.2.2
imagePullPolicy: Always
command:
- ./podinfo
- -port=9898
- -debug=true
ports:
- name: http
containerPort: 9898
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: 9898
initialDelaySeconds: 1
periodSeconds: 5
failureThreshold: 1
livenessProbe:
httpGet:
path: /healthz
port: 9898
initialDelaySeconds: 1
periodSeconds: 10
failureThreshold: 2
resources:
requests:
memory: "32Mi"
cpu: "10m"
-21
View File
@@ -1,21 +0,0 @@
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
name: podinfo-canary
namespace: default
spec:
precedence: 2
match:
request:
headers:
x-user:
exact: insider
destination:
name: podinfo
route:
- labels:
release: canary
weight: 50
- labels:
release: canaryb
weight: 50
-52
View File
@@ -1,52 +0,0 @@
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: podinfo-canaryb
labels:
app: podinfo
release: canaryb
spec:
replicas: 2
selector:
matchLabels:
app: podinfo
release: canaryb
template:
metadata:
labels:
app: podinfo
release: canaryb
annotations:
prometheus.io/scrape: 'true'
spec:
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.2.0
imagePullPolicy: Always
command:
- ./podinfo
- -port=9898
- -debug=true
ports:
- name: http
containerPort: 9898
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: 9898
initialDelaySeconds: 1
periodSeconds: 5
failureThreshold: 1
livenessProbe:
httpGet:
path: /healthz
port: 9898
initialDelaySeconds: 1
periodSeconds: 10
failureThreshold: 2
resources:
requests:
memory: "32Mi"
cpu: "10m"
-52
View File
@@ -1,52 +0,0 @@
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: podinfo-ga
labels:
app: podinfo
release: ga
spec:
replicas: 2
selector:
matchLabels:
app: podinfo
release: ga
template:
metadata:
labels:
app: podinfo
release: ga
annotations:
prometheus.io/scrape: 'true'
spec:
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.2.1
imagePullPolicy: Always
command:
- ./podinfo
- -port=9898
- -debug=true
ports:
- name: http
containerPort: 9898
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: 9898
initialDelaySeconds: 1
periodSeconds: 5
failureThreshold: 1
livenessProbe:
httpGet:
path: /healthz
port: 9898
initialDelaySeconds: 1
periodSeconds: 10
failureThreshold: 2
resources:
requests:
memory: "32Mi"
cpu: "10m"
-32
View File
@@ -1,32 +0,0 @@
---
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
name: podinfo-ga
namespace: default
spec:
precedence: 1
match:
request:
headers:
x-user:
regex: .*
destination:
name: podinfo
route:
- labels:
release: ga
---
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
name: podinfo-default
namespace: default
spec:
precedence: 0
destination:
name: podinfo
route:
- labels:
release: ga
weight: 100
-16
View File
@@ -1,16 +0,0 @@
---
apiVersion: v1
kind: Service
metadata:
name: podinfo
labels:
app: podinfo
spec:
type: NodePort
ports:
- name: http
port: 9898
targetPort: http
protocol: TCP
selector:
app: podinfo