initial commit
This commit is contained in:
60
dev/tekton/examples/example-bank/pipelines/deployments/transaction.yaml
Executable file
60
dev/tekton/examples/example-bank/pipelines/deployments/transaction.yaml
Executable file
@@ -0,0 +1,60 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transaction-service
|
||||
labels:
|
||||
app: transaction-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: transaction-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: transaction-service
|
||||
annotations:
|
||||
sidecar.istio.io/inject: "false"
|
||||
spec:
|
||||
containers:
|
||||
- name: transaction-service
|
||||
image: ykoyfman/bank-transaction-service:1.0
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http-server
|
||||
containerPort: 9080
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: bank-db-secret
|
||||
- secretRef:
|
||||
name: bank-oidc-secret
|
||||
env:
|
||||
- name: USER_SERVICE_URL
|
||||
value: "http://user-service:9080/bank/v1/users"
|
||||
- name: KNATIVE_SERVICE_URL
|
||||
value: "http://process-transaction.bank-renamed-no-mesh.svc.cluster.local"
|
||||
- name: WLP_LOGGING_CONSOLE_LOGLEVEL
|
||||
value: INFO
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: transaction-service
|
||||
labels:
|
||||
app: transaction-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 9080
|
||||
targetPort: 9080
|
||||
selector:
|
||||
app: transaction-service
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Route
|
||||
metadata:
|
||||
name: transaction-service
|
||||
spec:
|
||||
to:
|
||||
kind: Service
|
||||
name: transaction-service
|
||||
|
||||
53
dev/tekton/examples/example-bank/pipelines/deployments/ui.yaml
Executable file
53
dev/tekton/examples/example-bank/pipelines/deployments/ui.yaml
Executable file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mobile-simulator-service
|
||||
labels:
|
||||
app: mobile-simulator
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: mobile-simulator
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mobile-simulator-deployment
|
||||
labels:
|
||||
app: mobile-simulator
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mobile-simulator
|
||||
spec:
|
||||
containers:
|
||||
- image: anthonyamanse/mobile-simulator:example-bank-1.0
|
||||
imagePullPolicy: Always
|
||||
name: mobile-simulator
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: mobile-simulator-secrets
|
||||
env:
|
||||
- name: PORT
|
||||
value: '8080'
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Route
|
||||
metadata:
|
||||
name: mobile-simulator-service
|
||||
spec:
|
||||
to:
|
||||
kind: Service
|
||||
name: mobile-simulator-service
|
||||
|
||||
51
dev/tekton/examples/example-bank/pipelines/deployments/user.yaml
Executable file
51
dev/tekton/examples/example-bank/pipelines/deployments/user.yaml
Executable file
@@ -0,0 +1,51 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: user-service
|
||||
labels:
|
||||
app: user-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: user-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: user-service
|
||||
spec:
|
||||
containers:
|
||||
- name: user-service
|
||||
image: anthonyamanse/user-service:example-bank-1.0
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http-server
|
||||
containerPort: 9080
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: bank-db-secret
|
||||
- secretRef:
|
||||
name: bank-oidc-secret
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: user-service
|
||||
labels:
|
||||
app: user-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 9080
|
||||
targetPort: 9080
|
||||
selector:
|
||||
app: user-service
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Route
|
||||
metadata:
|
||||
name: user-service
|
||||
spec:
|
||||
to:
|
||||
kind: Service
|
||||
name: user-service
|
||||
|
||||
Reference in New Issue
Block a user