29 lines
585 B
YAML
29 lines
585 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: numbers-api
|
||
|
namespace: kiamol-ch13-test
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: numbers-api
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: numbers-api
|
||
|
annotations:
|
||
|
fluentbit.io/parser: dotnet-syslog
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: api
|
||
|
image: kiamol/ch03-numbers-api
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
name: api
|
||
|
env:
|
||
|
- name: FailAfterCallCount
|
||
|
value: "1"
|
||
|
- name: UseFailureId
|
||
|
value: "true"
|
||
|
|