agregando fastapi
This commit is contained in:
33
infra/api_pod.yaml
Normal file
33
infra/api_pod.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
|
||||
kind: Pod
|
||||
|
||||
metadata:
|
||||
name: api_stack_pod
|
||||
labels:
|
||||
app: ciec_stack
|
||||
|
||||
spec:
|
||||
containers:
|
||||
- name: fastapi-app
|
||||
image: localhost/fastapi
|
||||
command: ["uvicorn","main:app","--host=0.0.0.0","--port=8000","--reload"]
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
hostPort: 8082
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: ciec-config
|
||||
volumeMounts:
|
||||
- name: apps-storage
|
||||
mountPath: /home
|
||||
- name: redis-cache
|
||||
image: docker.io/library/redis:latest
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
volumes:
|
||||
- name: apps-storage
|
||||
hostPath:
|
||||
path: /home/danielcruzmx/projecto_ciec_v6/apps/api/code
|
||||
type: DirectoryOrCreate
|
||||
Reference in New Issue
Block a user