Skip to content

Commit

Permalink
case #19 running without istio
Browse files Browse the repository at this point in the history
  • Loading branch information
DickChesterwood committed Oct 3, 2019
1 parent fa34a47 commit 975b560
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 6 deletions.
1 change: 1 addition & 0 deletions istio-fleetman-webapp-angular/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ http {

location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}
}
26 changes: 25 additions & 1 deletion k8s-manifests/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,31 @@ metadata:
name: fleetman-vehicle-telemetry
spec:
selector:
app: vehicle-telemetry # I THINK This is redundant in Istio.
app: vehicle-telemetry
ports:
- name: http
port: 8080
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: fleetman-staff-service
spec:
selector:
app: staff-service
ports:
- name: http
port: 8080
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: fleetman-photo-service
spec:
selector:
app: photo-service
ports:
- name: http
port: 8080
Expand Down
54 changes: 49 additions & 5 deletions k8s-manifests/workloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: position-simulator
image: richardchesterwood/istio-fleetman-position-simulator:3-delete
image: richardchesterwood/istio-fleetman-position-simulator:4
env:
- name: SPRING_PROFILES_ACTIVE
value: production-microservice
Expand All @@ -38,7 +38,7 @@ spec:
spec:
containers:
- name: position-tracker
image: richardchesterwood/istio-fleetman-position-tracker:3-delete
image: richardchesterwood/istio-fleetman-position-tracker:4
env:
- name: SPRING_PROFILES_ACTIVE
value: production-microservice
Expand All @@ -62,7 +62,7 @@ spec:
spec:
containers:
- name: api-gateway
image: richardchesterwood/istio-fleetman-api-gateway:3-delete
image: richardchesterwood/istio-fleetman-api-gateway:4
env:
- name: SPRING_PROFILES_ACTIVE
value: production-microservice
Expand All @@ -85,7 +85,7 @@ spec:
spec:
containers:
- name: webapp
image: richardchesterwood/istio-fleetman-webapp-angular:3 # TODO!
image: richardchesterwood/istio-fleetman-webapp-angular:4
env:
- name: SPRING_PROFILES_ACTIVE
value: production-microservice
Expand All @@ -107,7 +107,51 @@ spec:
spec:
containers:
- name: vehicle-telemtry
image: richardchesterwood/istio-fleetman-vehicle-telemetry:3-delete
image: richardchesterwood/istio-fleetman-vehicle-telemetry:4
env:
- name: SPRING_PROFILES_ACTIVE
value: production-microservice
imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: staff-service
spec:
selector:
matchLabels:
app: staff-service
replicas: 1
template: # template for the pods
metadata:
labels:
app: staff-service
spec:
containers:
- name: staff-service
image: richardchesterwood/istio-fleetman-staff-service:4
env:
- name: SPRING_PROFILES_ACTIVE
value: production-microservice
imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: photo-service
spec:
selector:
matchLabels:
app: photo-service
replicas: 1
template: # template for the pods
metadata:
labels:
app: photo-service
spec:
containers:
- name: photo-service
image: richardchesterwood/istio-fleetman-photo-service:4
env:
- name: SPRING_PROFILES_ACTIVE
value: production-microservice
Expand Down

0 comments on commit 975b560

Please sign in to comment.