Update to newer sock shop manifests

This commit is contained in:
Jesse Suen 2018-06-29 01:44:33 -07:00
parent 49723157a6
commit 852d97d96e
No known key found for this signature in database
GPG Key ID: 90C911E8A6106562
29 changed files with 288 additions and 52 deletions

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -37,4 +38,4 @@ spec:
emptyDir:
medium: Memory
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/os: linux

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -17,13 +18,20 @@ spec:
containers:
- name: carts
image: weaveworksdemos/carts:0.4.8
ports:
- containerPort: 80
env:
- name: ZIPKIN
value: zipkin.jaeger.svc.cluster.local
- name: JAVA_OPTS
value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom
resources:
limits:
cpu: 300m
memory: 500Mi
requests:
cpu: 300m
memory: 500Mi
ports:
- containerPort: 80
securityContext:
runAsNonRoot: true
runAsUser: 10001
@ -36,6 +44,18 @@ spec:
volumeMounts:
- mountPath: /tmp
name: tmp-volume
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 180
periodSeconds: 3
volumes:
- name: tmp-volume
emptyDir:

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -17,6 +18,13 @@ spec:
containers:
- name: catalogue
image: weaveworksdemos/catalogue:0.3.5
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 80
securityContext:
@ -28,5 +36,17 @@ spec:
add:
- NET_BIND_SERVICE
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 180
periodSeconds: 3
nodeSelector:
beta.kubernetes.io/os: linux

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -16,11 +17,17 @@ spec:
- name: front-end
image: weaveworksdemos/front-end:0.3.12
resources:
limits:
cpu: 300m
memory: 1000Mi
requests:
cpu: 100m
memory: 100Mi
memory: 300Mi
ports:
- containerPort: 8079
env:
- name: SESSION_REDIS
value: "true"
securityContext:
runAsNonRoot: true
runAsUser: 10001
@ -28,5 +35,17 @@ spec:
drop:
- all
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /
port: 8079
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /
port: 8079
initialDelaySeconds: 30
periodSeconds: 3
nodeSelector:
beta.kubernetes.io/os: linux

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -22,6 +23,13 @@ spec:
value: zipkin.jaeger.svc.cluster.local
- name: JAVA_OPTS
value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 200m
memory: 500Mi
ports:
- containerPort: 80
securityContext:
@ -36,6 +44,18 @@ spec:
volumeMounts:
- mountPath: /tmp
name: tmp-volume
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 180
periodSeconds: 3
volumes:
- name: tmp-volume
emptyDir:

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -6,31 +6,32 @@
components: {
// Component-level parameters, defined initially from 'ks prototype use ...'
// Each object below should correspond to a component in the components/ directory
"carts-db-deploy": {},
"carts-db-dep": {},
"carts-db-svc": {},
"carts-deploy": {},
"carts-svc": {},
"catalogue-db-deploy": {},
"carts-dep": {},
"catalogue-db-dep": {},
"catalogue-db-svc": {},
"catalogue-deploy": {},
"catalogue-dep": {},
"catalogue-svc": {},
"front-end-deploy": {},
"front-end-dep": {},
"front-end-svc": {},
"orders-db-deploy": {},
"orders-db-dep": {},
"orders-db-svc": {},
"orders-deploy": {},
"orders-dep": {},
"orders-svc": {},
"payment-deploy": {},
"payment-dep": {},
"payment-svc": {},
"queue-master-deploy": {},
"queue-master-dep": {},
"queue-master-svc": {},
"rabbitmq-deploy": {},
"rabbitmq-dep": {},
"rabbitmq-svc": {},
"shipping-deploy": {},
"session-db-dep": {},
"session-db-svc": {},
"shipping-dep": {},
"shipping-svc": {},
"user-db-deploy": {},
"user-db-dep": {},
"user-db-svc": {},
"user-deploy": {},
"user-dep": {},
"user-svc": {},
},
}

View File

@ -1,4 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -18,6 +18,13 @@ spec:
containers:
- name: payment
image: weaveworksdemos/payment:0.4.3
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 99m
memory: 100Mi
ports:
- containerPort: 80
securityContext:
@ -29,5 +36,17 @@ spec:
add:
- NET_BIND_SERVICE
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 180
periodSeconds: 3
nodeSelector:
beta.kubernetes.io/os: linux

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -0,0 +1,48 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: queue-master
labels:
name: queue-master
spec:
replicas: 1
selector:
matchLabels:
name: queue-master
template:
metadata:
labels:
name: queue-master
spec:
containers:
- name: queue-master
image: weaveworksdemos/queue-master:0.3.1
env:
- name: ZIPKIN
value: zipkin.jaeger.svc.cluster.local
- name: JAVA_OPTS
value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom
resources:
limits:
cpu: 300m
memory: 500Mi
requests:
cpu: 300m
memory: 500Mi
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 180
periodSeconds: 3
nodeSelector:
beta.kubernetes.io/os: linux

View File

@ -1,23 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: queue-master
labels:
name: queue-master
spec:
replicas: 1
selector:
matchLabels:
name: queue-master
template:
metadata:
labels:
name: queue-master
spec:
containers:
- name: queue-master
image: weaveworksdemos/queue-master:0.3.1
ports:
- containerPort: 80
nodeSelector:
beta.kubernetes.io/os: linux

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -13,12 +14,17 @@ spec:
metadata:
labels:
name: rabbitmq
annotations:
prometheus.io/scrape: "false"
spec:
containers:
- name: rabbitmq
image: rabbitmq:3.6.8
image: rabbitmq:3.6.8-management
ports:
- containerPort: 15672
name: management
- containerPort: 5672
name: rabbitmq
securityContext:
capabilities:
drop:
@ -29,5 +35,10 @@ spec:
- SETUID
- DAC_OVERRIDE
readOnlyRootFilesystem: true
- name: rabbitmq-exporter
image: kbudde/rabbitmq-exporter
ports:
- containerPort: 9090
name: exporter
nodeSelector:
beta.kubernetes.io/os: linux

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:
@ -8,6 +9,11 @@ spec:
ports:
# the port that this service should serve on
- port: 5672
name: rabbitmq
targetPort: 5672
- port: 9090
name: exporter
targetPort: exporter
protocol: TCP
selector:
name: rabbitmq

View File

@ -0,0 +1,36 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: session-db
labels:
name: session-db
spec:
replicas: 1
selector:
matchLabels:
name: session-db
template:
metadata:
labels:
name: session-db
annotations:
prometheus.io.scrape: "false"
spec:
containers:
- name: session-db
image: redis:alpine
ports:
- name: redis
containerPort: 6379
securityContext:
capabilities:
drop:
- all
add:
- CHOWN
- SETGID
- SETUID
readOnlyRootFilesystem: true
nodeSelector:
beta.kubernetes.io/os: linux

View File

@ -1,13 +1,14 @@
---
apiVersion: v1
kind: Service
metadata:
name: carts
name: session-db
labels:
name: carts
name: session-db
spec:
ports:
# the port that this service should serve on
- port: 80
targetPort: 80
- port: 6379
targetPort: 6379
selector:
name: carts
name: session-db

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -22,6 +23,13 @@ spec:
value: zipkin.jaeger.svc.cluster.local
- name: JAVA_OPTS
value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom
resources:
limits:
cpu: 300m
memory: 500Mi
requests:
cpu: 300m
memory: 500Mi
ports:
- containerPort: 80
securityContext:
@ -36,6 +44,18 @@ spec:
volumeMounts:
- mountPath: /tmp
name: tmp-volume
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 180
periodSeconds: 3
volumes:
- name: tmp-volume
emptyDir:

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:
@ -11,3 +12,4 @@ spec:
targetPort: 80
selector:
name: shipping

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -16,7 +17,8 @@ spec:
spec:
containers:
- name: user-db
image: weaveworksdemos/user-db:0.4.0
image: weaveworksdemos/user-db:0.3.0
ports:
- name: mongo
containerPort: 27017
@ -37,4 +39,4 @@ spec:
emptyDir:
medium: Memory
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/os: linux

View File

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:
@ -11,3 +12,4 @@ spec:
targetPort: 27017
selector:
name: user-db

View File

@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -17,6 +18,13 @@ spec:
containers:
- name: user
image: weaveworksdemos/user:0.4.7
resources:
limits:
cpu: 300m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 80
env:
@ -31,5 +39,17 @@ spec:
add:
- NET_BIND_SERVICE
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 300
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 180
periodSeconds: 3
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/os: linux

View File

@ -1,10 +1,10 @@
---
apiVersion: v1
kind: Service
metadata:
name: user
labels:
name: user
namespace: sock-shop
spec:
ports:
# the port that this service should serve on
@ -12,3 +12,4 @@ spec:
targetPort: 80
selector:
name: user