oc new-project bookinfo
oc apply -n bookinfo -f https://raw.githubusercontent.com/Maistra/bookinfo/maistra-1.0/bookinfo.yaml
oc apply -n bookinfo -f https://raw.githubusercontent.com/Maistra/bookinfo/maistra-1.0/bookinfo-gateway.yaml
oc apply -n bookinfo -f https://raw.githubusercontent.com/istio/istio/release-1.1/samples/bookinfo/networking/destination-rule-all.yaml
oc new-app https://github.com/pichuang/time --context-dir=rhel
spec.template.metadata.annotations:
sidecar.istio.io/inject: 'true'
...omit...
kind: Deployment
apiVersion: apps/v1
metadata:
annotations:
deployment.kubernetes.io/revision: '1'
name: details-v1
namespace: bookinfo
labels:
app: details
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: details
version: v1
template: <--- Should under template
metadata:
...omit...
annotations:
sidecar.istio.io/inject: 'true' <--- Append
...omit...
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
...omit...
template: <-- Should under template
metadata:
creationTimestamp: null
labels:
app: time
deploymentconfig: time
annotations:
openshift.io/generated-by: OpenShiftNewApp
sidecar.istio.io/inject: 'true' <--- Append
spec:
...omit...