mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 02:17:20 +02:00
k8s first step
This commit is contained in:
1 parent
0337962303
commit
36f02ce738
6 files changed
+114
-1
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
version: "3.9"
|
||||
version: "3"
|
||||
services:
|
||||
web:
|
||||
image: "mike/wot-blitz-statistics-pro:latest"
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app: blitz-mongodblvolume
|
||||
name: blitz-mongodblvolume
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
status: {}
|
||||
@@ -0,0 +1,38 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: wot-blitz-statistics-mongo
|
||||
name: wot-blitz-statistics-pro-app-mongo-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wot-blitz-statistics-mongo
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wot-blitz-statistics-mongo
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: MONGO_INITDB_ROOT_PASSWORD
|
||||
- name: MONGO_INITDB_ROOT_USERNAME
|
||||
image: mongo
|
||||
imagePullPolicy: ""
|
||||
name: wot-blitz-statistics-mongo
|
||||
ports:
|
||||
- containerPort: 27017
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /data/db
|
||||
name: blitz-mongodblvolume
|
||||
restartPolicy: Always
|
||||
serviceAccountName: ""
|
||||
volumes:
|
||||
- name: blitz-mongodblvolume
|
||||
persistentVolumeClaim:
|
||||
claimName: blitz-mongodblvolume
|
||||
status: {}
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: wot-blitz-statistics-mongo
|
||||
name: wot-blitz-statistics-pro-app-mongo-service
|
||||
spec:
|
||||
ports:
|
||||
- name: "27027"
|
||||
port: 27027
|
||||
targetPort: 27017
|
||||
selector:
|
||||
app: wot-blitz-statistics-mongo
|
||||
type: LoadBalancer
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: wot-blitz-statistics-web
|
||||
name: wot-blitz-statistics-pro-app-web-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wot-blitz-statistics-web
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wot-blitz-statistics-web
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: Mongo__ConnectionString
|
||||
- name: Mongo__DatabaseName
|
||||
- name: WargamingApi__ApplicationId
|
||||
image: mike/wot-blitz-statistics-pro:v1
|
||||
imagePullPolicy: ""
|
||||
name: wot-blitz-statististics-web
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources: {}
|
||||
restartPolicy: Always
|
||||
serviceAccountName: ""
|
||||
volumes: null
|
||||
status: {}
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: wot-blitz-statistics-web
|
||||
name: wot-blitz-statistics-pro-app-web-service
|
||||
spec:
|
||||
selector:
|
||||
app: wot-blitz-statistics-web
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- name: "8040"
|
||||
port: 8040
|
||||
targetPort: 80
|
||||
Reference in new issue
Block a user