Master-Node Stack & README
This commit is contained in:
66
k3s-manifests/aam-deploy.yaml
Normal file
66
k3s-manifests/aam-deploy.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: aam
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: aam-deployment
|
||||
namespace: aam
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: aam
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: aam
|
||||
spec:
|
||||
nodeName: rpi-worker-monitor
|
||||
|
||||
containers:
|
||||
- name: aam
|
||||
image: sadew1112/aam:0.1.0
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
- name: PORT
|
||||
value: "9000"
|
||||
- name: DRY_RUN
|
||||
value: "false"
|
||||
- name: USE_SUDO
|
||||
value: "true"
|
||||
- name: SSH_USER
|
||||
value: "pi"
|
||||
- name: SSH_KEY_PATH
|
||||
value: "/app/.ssh/aam_key"
|
||||
ports:
|
||||
- containerPort: 9000
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: ssh-key-volume
|
||||
mountPath: /app/.ssh
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: ssh-key-volume
|
||||
secret:
|
||||
secretName: aam-ssh-key
|
||||
defaultMode: 0400
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: aam-service
|
||||
namespace: aam
|
||||
spec:
|
||||
selector:
|
||||
app: aam
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: http
|
||||
port: 9000
|
||||
targetPort: 9000
|
||||
nodePort: 30104
|
||||
Reference in New Issue
Block a user