Merge branch 'dev' into 'main'
add files See merge request pierre/onitama_kube!1
This commit is contained in:
@@ -0,0 +1,45 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: onitama
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: onitama
|
||||||
|
namespace: onitama
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: onitama
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: onitama
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/jackadamson/onitama:latest
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: onitama
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
name: onitama-port
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "80"
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: onitama
|
||||||
|
namespace: onitama
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: onitama-port
|
||||||
|
protocol: TCP
|
||||||
|
# nodePort: 30007
|
||||||
|
# type: NodePort
|
||||||
|
selector:
|
||||||
|
app: onitama
|
||||||
Reference in New Issue
Block a user