mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 11:39:36 +02:00
chore(skaffold): refine shokohsc profile
This commit is contained in:
parent
95c41b62ac
commit
1c9a0303fd
7 changed files with 92 additions and 14 deletions
|
@ -18,14 +18,6 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: flame
|
- name: flame
|
||||||
image: shokohsc/flame
|
image: shokohsc/flame
|
||||||
command:
|
|
||||||
- npm
|
|
||||||
args:
|
|
||||||
- run
|
|
||||||
- skaffold
|
|
||||||
env:
|
|
||||||
- name: NODE_ENV
|
|
||||||
value: development
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 5005
|
containerPort: 5005
|
||||||
|
|
36
k8s/overlays/shokohsc/deployment.yaml
Normal file
36
k8s/overlays/shokohsc/deployment.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: flame
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: flame
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: flame
|
||||||
|
spec:
|
||||||
|
serviceAccountName: flame-dev
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
containers:
|
||||||
|
- name: flame
|
||||||
|
image: shokohsc/flame
|
||||||
|
command:
|
||||||
|
- npm
|
||||||
|
args:
|
||||||
|
- run
|
||||||
|
- skaffold
|
||||||
|
env:
|
||||||
|
- name: NODE_ENV
|
||||||
|
value: development
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 5005
|
||||||
|
protocol: TCP
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
|
@ -6,9 +6,6 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: nginx
|
kubernetes.io/ingress.class: nginx
|
||||||
cert-manager.io/cluster-issuer: ca-cluster-issuer
|
cert-manager.io/cluster-issuer: ca-cluster-issuer
|
||||||
forecastle.stakater.com/expose: "true"
|
|
||||||
forecastle.stakater.com/group: dev
|
|
||||||
forecastle.stakater.com/appName: flame
|
|
||||||
flame.pawelmalak/name: flame
|
flame.pawelmalak/name: flame
|
||||||
flame.pawelmalak/url: dev.flame.shokohsc.home
|
flame.pawelmalak/url: dev.flame.shokohsc.home
|
||||||
flame.pawelmalak/type: app
|
flame.pawelmalak/type: app
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
bases:
|
namespace: flame-dev
|
||||||
- ../../base
|
resources:
|
||||||
patchesStrategicMerge:
|
- namespace.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
- rbac.yaml
|
||||||
|
|
8
k8s/overlays/shokohsc/namespace.yaml
Normal file
8
k8s/overlays/shokohsc/namespace.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: flame-dev
|
||||||
|
labels:
|
||||||
|
namespace: flame-dev
|
||||||
|
goldilocks.fairwinds.com/enabled: "true"
|
26
k8s/overlays/shokohsc/rbac.yaml
Normal file
26
k8s/overlays/shokohsc/rbac.yaml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: flame-dev
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: flame-dev
|
||||||
|
rules:
|
||||||
|
- apiGroups: ["networking.k8s.io"]
|
||||||
|
resources: ["ingresses"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: flame-dev
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: flame-dev
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: flame-dev
|
16
k8s/overlays/shokohsc/service.yaml
Normal file
16
k8s/overlays/shokohsc/service.yaml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: flame
|
||||||
|
labels:
|
||||||
|
app: flame
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
app: flame
|
Loading…
Add table
Add a link
Reference in a new issue