新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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"
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: numbers-api-proxy
|
||||
namespace: kiamol-ch13-test
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: numbers-api-proxy
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: numbers-api-proxy
|
||||
annotations:
|
||||
fluentbit.io/parser: nginx
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx:1.17-alpine
|
||||
name: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: "/etc/nginx/"
|
||||
readOnly: true
|
||||
- name: cache-volume
|
||||
mountPath: /data/nginx/cache
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: numbers-api-proxy-config
|
||||
- name: cache-volume
|
||||
emptyDir: {}
|
||||
Reference in New Issue
Block a user