update(app): add examples and README file
This commit is contained in:
39
examples/k8s/deployment.yaml
Normal file
39
examples/k8s/deployment.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: metalcheck-backend
|
||||
labels:
|
||||
app: metalcheck
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: metalcheck
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: metalcheck
|
||||
spec:
|
||||
containers:
|
||||
- name: backend
|
||||
image: <your-ecr-repo>:latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
- name: KUBERNETES_SERVICE_HOST
|
||||
value: "kubernetes.default"
|
||||
- name: KUBERNETES_SERVICE_PORT
|
||||
value: "443"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: metalcheck-backend
|
||||
spec:
|
||||
selector:
|
||||
app: metalcheck
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8000
|
||||
type: LoadBalancer
|
||||
Reference in New Issue
Block a user