Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-operationのマニフェスト書く #262

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions infra/manifests/app/auto-operation/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auto-operation
namespace: plarail2023
spec:
selector:
matchLabels:
app: auto-operation
template:
metadata:
labels:
app: auto-operation
spec:
containers:
- name: auto-operation
image: ghcr.io/ueckoken/plarail2023-autooperation:deployment-d17e785-1700807874 # {"$imagepolicy": "plarail2021:auto-operation"}
imagePullPolicy: Always
env:
- name: SERVER_ADDR
value: 'http://state-manager:8080'

2 changes: 2 additions & 0 deletions infra/manifests/app/auto-operation/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- 'deployment.yaml'
22 changes: 22 additions & 0 deletions infra/manifests/app/dashboard/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dashboard
namespace: plarail2023
spec:
selector:
matchLabels:
app: dashboard
template:
metadata:
labels:
app: dashboard
spec:
containers:
- name: dashboard
image: ghcr.io/ueckoken/plarail2023-dashboard:deployment-d17e785-1700807874 # {"$imagepolicy": "plarail2021:auto-operation"}
imagePullPolicy: Always
env:
- name: SERVER_ADDR
value: 'http://state-manager:8080'

3 changes: 3 additions & 0 deletions infra/manifests/app/dashboard/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resources:
- 'deployment.yaml'
- service.yaml
16 changes: 16 additions & 0 deletions infra/manifests/app/dashboard/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: dashboard
namespace: plarail2023
labels:
app: dashboard
spec:
type: ClusterIP
selector:
app: dashboard
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 3000
5 changes: 4 additions & 1 deletion infra/manifests/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
resources:
- ./emqx
- './auto-operation'
- 'dashboard'
- 'state-manager'
# - ./emqx
35 changes: 35 additions & 0 deletions infra/manifests/app/state-manager/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: state-manager
namespace: plarail2023
spec:
selector:
matchLabels:
app: state-manager
template:
metadata:
labels:
app: state-manager
spec:
containers:
- name: state-manager
image: ghcr.io/ueckoken/plarail2023-state-manager/deployment-d17e785-1700807874 # {"$imagepolicy": "plarail2023:state-manager"}
imagePullPolicy: Always
env:
- name: MQTT_BROKER_ADDR
value: tls://p390e24a.ala.us-east-1.emqxsl.com:8883
- name: MQTT_USERNAME
value: test
- name: MQTT_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: mqtt_secret
- name: MQTT_CLIENT_ID
value: emqx_cloudd1e033
- name: MONGODB_URI
valueFrom:
secretKeyRef:
key: MONGODB_URI
name: mongodb_secret
3 changes: 3 additions & 0 deletions infra/manifests/app/state-manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resources:
- 'deployment.yaml'
- service.yaml
16 changes: 16 additions & 0 deletions infra/manifests/app/state-manager/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: state-manager
namespace: plarail2023
labels:
app: state-manager
spec:
type: ClusterIP
selector:
app: state-manager
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080