add stage-maker app
This commit is contained in:
36
apps/stage-maker/cluster-role.yaml
Normal file
36
apps/stage-maker/cluster-role.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: stage-editor-role
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ontime.getontime.no
|
||||
resources:
|
||||
- stages
|
||||
verbs:
|
||||
- create
|
||||
- delete
|
||||
- get
|
||||
- list
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- ontime.getontime.no
|
||||
resources:
|
||||
- stages/status
|
||||
verbs:
|
||||
- get
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: edit-stages-clusterrolebinding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: stage-editor
|
||||
namespace: stage-maker
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: stage-editor-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
44
apps/stage-maker/deployment.yaml
Normal file
44
apps/stage-maker/deployment.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: stage-maker
|
||||
namespace: stage-maker
|
||||
labels:
|
||||
app: stage-maker
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: stage-maker
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: stage-maker
|
||||
spec:
|
||||
serviceAccountName: stage-editor
|
||||
volumes:
|
||||
- name: storage
|
||||
nfs:
|
||||
path: /volume1/docker/ontime-k8s
|
||||
server: 10.0.0.17
|
||||
containers:
|
||||
- name: stage-maker
|
||||
image: git.jwetzell.com/jwetzell/stage-maker:v0.0.18
|
||||
env:
|
||||
- name: ONTIME_HOSTNAME
|
||||
value: "ontime.jwetzell.com"
|
||||
- name: NFS_SERVER
|
||||
value: "10.0.0.17"
|
||||
- name: NFS_BASE_PATH
|
||||
value: "/volume1/docker/ontime-k8s"
|
||||
- name: STORAGE_BASE_PATH
|
||||
value: "/data"
|
||||
resources:
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
requests:
|
||||
cpu: 1000m
|
||||
memory: "512Mi"
|
||||
volumeMounts:
|
||||
- name: storage
|
||||
mountPath: "/data"
|
||||
18
apps/stage-maker/ingress.yaml
Normal file
18
apps/stage-maker/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: stage-maker-ingress
|
||||
namespace: stage-maker
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: ontime.jwetzell.com
|
||||
http:
|
||||
paths:
|
||||
- path: /api/v1/stage
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: stage-maker-service
|
||||
port:
|
||||
number: 3000
|
||||
9
apps/stage-maker/kustomization.yaml
Normal file
9
apps/stage-maker/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- deployment.yaml
|
||||
- ingress.yaml
|
||||
- cluster-role.yaml
|
||||
- service-account.yaml
|
||||
- service.yaml
|
||||
4
apps/stage-maker/namespace.yaml
Normal file
4
apps/stage-maker/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: stage-maker
|
||||
5
apps/stage-maker/service-account.yaml
Normal file
5
apps/stage-maker/service-account.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: stage-editor
|
||||
namespace: stage-maker
|
||||
15
apps/stage-maker/service.yaml
Normal file
15
apps/stage-maker/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: stage-maker-service
|
||||
namespace: stage-maker
|
||||
spec:
|
||||
selector:
|
||||
app: stage-maker
|
||||
ports:
|
||||
- protocol: "TCP"
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
name: web
|
||||
|
||||
|
||||
Reference in New Issue
Block a user