Browse Source

Update to newer sock shop manifests

pull/2/head
Jesse Suen 6 years ago
parent
commit
852d97d96e
No known key found for this signature in database GPG Key ID: 90C911E8A6106562
  1. 1
      sock-shop/components/carts-db-dep.yaml
  2. 1
      sock-shop/components/carts-db-svc.yaml
  3. 24
      sock-shop/components/carts-dep.yaml
  4. 1
      sock-shop/components/catalogue-db-dep.yaml
  5. 1
      sock-shop/components/catalogue-db-svc.yaml
  6. 20
      sock-shop/components/catalogue-dep.yaml
  7. 1
      sock-shop/components/catalogue-svc.yaml
  8. 21
      sock-shop/components/front-end-dep.yaml
  9. 1
      sock-shop/components/front-end-svc.yaml
  10. 1
      sock-shop/components/orders-db-dep.yaml
  11. 1
      sock-shop/components/orders-db-svc.yaml
  12. 20
      sock-shop/components/orders-dep.yaml
  13. 1
      sock-shop/components/orders-svc.yaml
  14. 29
      sock-shop/components/params.libsonnet
  15. 21
      sock-shop/components/payment-dep.yaml
  16. 1
      sock-shop/components/payment-svc.yaml
  17. 48
      sock-shop/components/queue-master-dep.yaml
  18. 23
      sock-shop/components/queue-master-deploy.yaml
  19. 1
      sock-shop/components/queue-master-svc.yaml
  20. 13
      sock-shop/components/rabbitmq-dep.yaml
  21. 6
      sock-shop/components/rabbitmq-svc.yaml
  22. 36
      sock-shop/components/session-db-dep.yaml
  23. 11
      sock-shop/components/session-db-svc.yaml
  24. 20
      sock-shop/components/shipping-dep.yaml
  25. 2
      sock-shop/components/shipping-svc.yaml
  26. 4
      sock-shop/components/user-db-dep.yaml
  27. 2
      sock-shop/components/user-db-svc.yaml
  28. 20
      sock-shop/components/user-dep.yaml
  29. 3
      sock-shop/components/user-svc.yaml

1
sock-shop/components/carts-db-deploy.yaml → sock-shop/components/carts-db-dep.yaml

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

1
sock-shop/components/carts-db-svc.yaml

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

24
sock-shop/components/carts-deploy.yaml → sock-shop/components/carts-dep.yaml

@ -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:

1
sock-shop/components/catalogue-db-deploy.yaml → sock-shop/components/catalogue-db-dep.yaml

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

1
sock-shop/components/catalogue-db-svc.yaml

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

20
sock-shop/components/catalogue-deploy.yaml → sock-shop/components/catalogue-dep.yaml

@ -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

1
sock-shop/components/catalogue-svc.yaml

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

21
sock-shop/components/front-end-deploy.yaml → sock-shop/components/front-end-dep.yaml

@ -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

1
sock-shop/components/front-end-svc.yaml

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

1
sock-shop/components/orders-db-deploy.yaml → sock-shop/components/orders-db-dep.yaml

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

1
sock-shop/components/orders-db-svc.yaml

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

20
sock-shop/components/orders-deploy.yaml → sock-shop/components/orders-dep.yaml

@ -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:

1
sock-shop/components/orders-svc.yaml

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

29
sock-shop/components/params.libsonnet

@ -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": {},
},
}

21
sock-shop/components/payment-deploy.yaml → sock-shop/components/payment-dep.yaml

@ -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

1
sock-shop/components/payment-svc.yaml

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

48
sock-shop/components/queue-master-dep.yaml

@ -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

23
sock-shop/components/queue-master-deploy.yaml

@ -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

1
sock-shop/components/queue-master-svc.yaml

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

13
sock-shop/components/rabbitmq-deploy.yaml → sock-shop/components/rabbitmq-dep.yaml

@ -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

6
sock-shop/components/rabbitmq-svc.yaml

@ -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

36
sock-shop/components/session-db-dep.yaml

@ -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

11
sock-shop/components/carts-svc.yaml → sock-shop/components/session-db-svc.yaml

@ -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

20
sock-shop/components/shipping-deploy.yaml → sock-shop/components/shipping-dep.yaml

@ -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:

2
sock-shop/components/shipping-svc.yaml

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

4
sock-shop/components/user-db-deploy.yaml → sock-shop/components/user-db-dep.yaml

@ -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

2
sock-shop/components/user-db-svc.yaml

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

20
sock-shop/components/user-deploy.yaml → sock-shop/components/user-dep.yaml

@ -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

3
sock-shop/components/user-svc.yaml

@ -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

Loading…
Cancel
Save