mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-04-22 10:46:45 +00:00
Add store service
This commit is contained in:
@@ -55,4 +55,4 @@ spec:
|
||||
- name: message
|
||||
value: "Greetings from backend grey"
|
||||
- name: backend_url
|
||||
value: "http://podinfo:9898/echo" #"https://httpbin.org/anything"
|
||||
value: "http://podinfo-store:9898/echo" #"https://httpbin.org/anything"
|
||||
|
||||
@@ -55,4 +55,4 @@ spec:
|
||||
- name: message
|
||||
value: "Greetings from backend orange"
|
||||
- name: backend_url
|
||||
value: "http://podinfo:9898/echo" #"https://httpbin.org/anything"
|
||||
value: "http://podinfo-store:9898/echo" #"https://httpbin.org/anything"
|
||||
|
||||
56
deploy/istio/store-dep.yaml
Normal file
56
deploy/istio/store-dep.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: podinfo-store
|
||||
labels:
|
||||
app: podinfo-store
|
||||
version: "0.6"
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: podinfo-store
|
||||
version: "0.6"
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: podinfo-store
|
||||
version: "0.6"
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
spec:
|
||||
containers:
|
||||
- name: podinfod
|
||||
image: quay.io/stefanprodan/podinfo:0.6.0-rc.1
|
||||
command:
|
||||
- ./podinfo
|
||||
- -port=9898
|
||||
- -logLevel=debug
|
||||
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"
|
||||
env:
|
||||
- name: color
|
||||
value: "yellow"
|
||||
- name: message
|
||||
value: "Greetings from store yellow"
|
||||
15
deploy/istio/store-svc.yaml
Normal file
15
deploy/istio/store-svc.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: podinfo-store
|
||||
labels:
|
||||
app: podinfo-store
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9898
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: podinfo-store
|
||||
Reference in New Issue
Block a user