Skip to content

Commit 48208fb

Browse files
committed
update structure
1 parent ab9dcff commit 48208fb

File tree

4 files changed

+289
-0
lines changed

4 files changed

+289
-0
lines changed

.kubero/credentials.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
api:
2+
#url: http://localhost:2000
3+
#token: XXXXXXXXXXXXXXX

.kubero/dashy/pipeline.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apiVersion: application.kubero.dev/v1alpha1
2+
kind: KuberoPipeline
3+
metadata:
4+
labels:
5+
manager: kubero
6+
name: dashy
7+
spec:
8+
buildpack:
9+
build:
10+
command: npm install
11+
repository: node
12+
tag: latest
13+
fetch:
14+
repository: ghcr.io/kubero-dev/buildpacks/fetch
15+
tag: main
16+
language: JavaScript
17+
name: NodeJS
18+
run:
19+
command: node index.js
20+
repository: node
21+
tag: latest
22+
deploymentstrategy: git
23+
domain: demo.kubero.dev
24+
name: dashy
25+
phases:
26+
- context: inClusterContext
27+
enabled: false
28+
name: review
29+
- context: inClusterContext
30+
enabled: false
31+
name: test
32+
- context: inClusterContext
33+
enabled: true
34+
name: stage
35+
- context: inClusterContext
36+
enabled: true
37+
name: production

.kubero/dashy/production/node.yaml

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
apiVersion: application.kubero.dev/v1alpha1
2+
kind: KuberoApp
3+
metadata:
4+
name: node
5+
namespace: demo-production
6+
spec:
7+
addons:
8+
- displayName: Kubero Mysql
9+
env: []
10+
icon: /img/addons/MySQL.png
11+
id: kubero-operator
12+
kind: KuberoMysql
13+
resourceDefinitions:
14+
KuberoMysql:
15+
apiVersion: application.kubero.dev/v1alpha1
16+
kind: KuberoMysql
17+
metadata:
18+
name: node-mysql
19+
spec:
20+
mysql:
21+
auth:
22+
createDatabase: true
23+
database: demo
24+
password: demo
25+
rootPassword: demo
26+
username: demo
27+
global:
28+
storageClass: linode-block-storage
29+
primary:
30+
persistence:
31+
accessModes:
32+
- ReadWriteOnce
33+
size: 100Mi
34+
affinity: {}
35+
autodeploy: true
36+
autoscale: false
37+
autoscaling:
38+
enabled: false
39+
branch: main
40+
buildpack: NodeJS
41+
cronjobs: []
42+
deploymentstrategy: git
43+
domain: node.demo.kubero.dev
44+
envVars:
45+
- name: MYSQL_USER
46+
value: demo
47+
- name: MYSQL_PATH
48+
value: demo
49+
- name: MYSQL_HOST
50+
value: node-mysql
51+
- name: MYSQL_PORT
52+
value: "3306"
53+
extraVolumes: []
54+
fullnameOverride: ""
55+
gitrepo:
56+
admin: false
57+
image:
58+
build:
59+
command: npm install
60+
repository: node
61+
tag: latest
62+
containerPort: 8080
63+
fetch:
64+
repository: ghcr.io/kubero-dev/buildpacks/fetch
65+
tag: main
66+
pullPolicy: Always
67+
repository: ghcr.io/kubero-dev/template-nodeapp
68+
run:
69+
command: node index.js
70+
repository: node
71+
securityContext:
72+
readOnlyRootFilesystem: true
73+
tag: latest
74+
tag: latest
75+
imagePullSecrets: []
76+
ingress:
77+
annotations: {}
78+
className: nginx
79+
enabled: true
80+
hosts:
81+
- host: node.demo.kubero.dev
82+
paths:
83+
- path: /
84+
pathType: ImplementationSpecific
85+
tls: []
86+
name: node
87+
nameOverride: ""
88+
nodeSelector: {}
89+
phase: production
90+
pipeline: demo
91+
podAnnotations: {}
92+
podSecurityContext: {}
93+
podsize:
94+
default: true
95+
description: 'Small (CPU: 0.25, Memory: 0.5Gi)'
96+
name: small
97+
resources:
98+
limits:
99+
cpu: 500m
100+
memory: 1Gi
101+
requests:
102+
cpu: 250m
103+
memory: 0.5Gi
104+
replicaCount: 1
105+
resources:
106+
limits:
107+
cpu: 500m
108+
memory: 1Gi
109+
requests:
110+
cpu: 250m
111+
memory: 0.5Gi
112+
service:
113+
port: 80
114+
type: ClusterIP
115+
serviceAccount:
116+
annotations: {}
117+
create: true
118+
name: ""
119+
tolerations: []
120+
vulnerabilityscan:
121+
enabled: false
122+
image:
123+
repository: aquasec/trivy
124+
tag: latest
125+
schedule: 6 8 * * *
126+
web:
127+
autoscaling:
128+
maxReplicas: 3
129+
minReplicas: 1
130+
targetCPUUtilizationPercentage: 80
131+
targetMemoryUtilizationPercentage: 80
132+
replicaCount: 1
133+
worker:
134+
autoscaling:
135+
maxReplicas: 0
136+
minReplicas: 0
137+
targetCPUUtilizationPercentage: 80
138+
targetMemoryUtilizationPercentage: 80
139+
replicaCount: 0

.kubero/dashy/stage/node-stage.yaml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
apiVersion: application.kubero.dev/v1alpha1
2+
kind: KuberoApp
3+
metadata:
4+
name: node-stage
5+
namespace: demo-production
6+
spec:
7+
addons: []
8+
affinity: {}
9+
autodeploy: true
10+
autoscale: false
11+
autoscaling:
12+
enabled: false
13+
branch: main
14+
buildpack: custom
15+
cronjobs: []
16+
deploymentstrategy: git
17+
domain: node-stage.demo.kubero.dev
18+
envVars: []
19+
extraVolumes: []
20+
fullnameOverride: ""
21+
gitrepo:
22+
admin: false
23+
image:
24+
build:
25+
command: npm install
26+
repository: node
27+
tag: latest
28+
containerPort: 8080
29+
fetch:
30+
repository: ghcr.io/kubero-dev/buildpacks/fetch
31+
tag: main
32+
pullPolicy: Always
33+
repository: ghcr.io/kubero-dev/template-nodeapp
34+
run:
35+
command: node index.js
36+
repository: node
37+
securityContext:
38+
readOnlyRootFilesystem: true
39+
tag: latest
40+
tag: latest
41+
imagePullSecrets: []
42+
ingress:
43+
annotations:
44+
cert-manager.io/cluster-issuer: letsencrypt-prod
45+
kubernetes.io/tls-acme: "true"
46+
className: nginx
47+
enabled: true
48+
hosts:
49+
- host: node-stage.demo.kubero.dev
50+
paths:
51+
- path: /
52+
pathType: ImplementationSpecific
53+
tls:
54+
- hosts:
55+
- node-stage.demo.kubero.dev
56+
secretName: node-stage-tls
57+
name: node-stage
58+
nameOverride: ""
59+
nodeSelector: {}
60+
phase: stage
61+
pipeline: demo
62+
podAnnotations: {}
63+
podSecurityContext: {}
64+
podsize:
65+
default: true
66+
description: 'Small (CPU: 0.25, Memory: 0.5Gi)'
67+
name: small
68+
resources:
69+
limits:
70+
cpu: 500m
71+
memory: 1Gi
72+
requests:
73+
cpu: 250m
74+
memory: 0.5Gi
75+
replicaCount: 1
76+
resources:
77+
limits:
78+
cpu: 500m
79+
memory: 1Gi
80+
requests:
81+
cpu: 250m
82+
memory: 0.5Gi
83+
service:
84+
port: 80
85+
type: ClusterIP
86+
serviceAccount:
87+
annotations: {}
88+
create: true
89+
name: ""
90+
tolerations: []
91+
vulnerabilityscan:
92+
enabled: false
93+
image:
94+
repository: aquasec/trivy
95+
tag: latest
96+
schedule: 5 8 * * *
97+
web:
98+
autoscaling:
99+
maxReplicas: 3
100+
minReplicas: 1
101+
targetCPUUtilizationPercentage: 80
102+
targetMemoryUtilizationPercentage: 80
103+
replicaCount: 2
104+
worker:
105+
autoscaling:
106+
maxReplicas: 0
107+
minReplicas: 0
108+
targetCPUUtilizationPercentage: 80
109+
targetMemoryUtilizationPercentage: 80
110+
replicaCount: 0

0 commit comments

Comments
 (0)