~repos /gromer
git clone https://pyrossh.dev/repos/gromer.git
gromer is a framework and cli to build multipage web apps in golang using htmx and alpinejs.
remove k8s
- example/k8s/base/deployment.yaml +0 -16
- example/k8s/base/ingress.yaml +0 -24
- example/k8s/base/kubegres.yaml +0 -21
- example/k8s/base/kustomization.yaml +0 -15
- example/k8s/base/nameReference.yaml +0 -5
- example/k8s/base/service.yaml +0 -13
- example/k8s/development/kustomization.yaml +0 -30
- example/k8s/development/migration.yaml +0 -16
- example/k8s/development/namespace.yaml +0 -4
example/k8s/base/deployment.yaml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
apiVersion: apps/v1
|
|
2
|
-
kind: Deployment
|
|
3
|
-
metadata:
|
|
4
|
-
name: my-app
|
|
5
|
-
spec:
|
|
6
|
-
replicas: 1
|
|
7
|
-
template:
|
|
8
|
-
spec:
|
|
9
|
-
containers:
|
|
10
|
-
- name: my-app
|
|
11
|
-
image: example-app:develop
|
|
12
|
-
ports:
|
|
13
|
-
- containerPort: 3000
|
|
14
|
-
envFrom:
|
|
15
|
-
- secretRef:
|
|
16
|
-
name: my-app
|
example/k8s/base/ingress.yaml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
apiVersion: networking.k8s.io/v1
|
|
2
|
-
kind: Ingress
|
|
3
|
-
metadata:
|
|
4
|
-
name: my-app
|
|
5
|
-
spec:
|
|
6
|
-
ingressClassName: nginx
|
|
7
|
-
rules:
|
|
8
|
-
- host: localhost
|
|
9
|
-
http:
|
|
10
|
-
paths:
|
|
11
|
-
- path: /
|
|
12
|
-
pathType: Prefix
|
|
13
|
-
backend:
|
|
14
|
-
service:
|
|
15
|
-
name: my-app
|
|
16
|
-
port:
|
|
17
|
-
number: 3000
|
|
18
|
-
---
|
|
19
|
-
apiVersion: networking.k8s.io/v1
|
|
20
|
-
kind: IngressClass
|
|
21
|
-
metadata:
|
|
22
|
-
name: my-app
|
|
23
|
-
spec:
|
|
24
|
-
controller: k8s.io/ingress-nginx
|
example/k8s/base/kubegres.yaml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
apiVersion: kubegres.reactive-tech.io/v1
|
|
2
|
-
kind: Kubegres
|
|
3
|
-
metadata:
|
|
4
|
-
name: kubegres
|
|
5
|
-
spec:
|
|
6
|
-
replicas: 3
|
|
7
|
-
image: postgres:14.1
|
|
8
|
-
database:
|
|
9
|
-
size: 1Gi
|
|
10
|
-
env:
|
|
11
|
-
- name: POSTGRES_PASSWORD
|
|
12
|
-
valueFrom:
|
|
13
|
-
secretKeyRef:
|
|
14
|
-
name: my-app
|
|
15
|
-
key: POSTGRES_PASSWORD
|
|
16
|
-
|
|
17
|
-
- name: POSTGRES_REPLICATION_PASSWORD
|
|
18
|
-
valueFrom:
|
|
19
|
-
secretKeyRef:
|
|
20
|
-
name: my-app
|
|
21
|
-
key: POSTGRES_REPLICATION_PASSWORD
|
example/k8s/base/kustomization.yaml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
2
|
-
kind: Kustomization
|
|
3
|
-
|
|
4
|
-
namespace: my-app
|
|
5
|
-
commonLabels:
|
|
6
|
-
app: my-app
|
|
7
|
-
|
|
8
|
-
resources:
|
|
9
|
-
- deployment.yaml
|
|
10
|
-
- service.yaml
|
|
11
|
-
- ingress.yaml
|
|
12
|
-
- kubegres.yaml
|
|
13
|
-
|
|
14
|
-
configurations:
|
|
15
|
-
- nameReference.yaml
|
example/k8s/base/nameReference.yaml
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
nameReference:
|
|
2
|
-
- kind: Secret
|
|
3
|
-
fieldSpecs:
|
|
4
|
-
- kind: Kubegres
|
|
5
|
-
path: spec/env/valueFrom/secretKeyRef/name
|
example/k8s/base/service.yaml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
apiVersion: v1
|
|
2
|
-
kind: Service
|
|
3
|
-
metadata:
|
|
4
|
-
name: my-app
|
|
5
|
-
spec:
|
|
6
|
-
type: LoadBalancer
|
|
7
|
-
selector:
|
|
8
|
-
app: my-app
|
|
9
|
-
ports:
|
|
10
|
-
- name: http
|
|
11
|
-
protocol: TCP
|
|
12
|
-
port: 3000
|
|
13
|
-
targetPort: 3000
|
example/k8s/development/kustomization.yaml
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
2
|
-
kind: Kustomization
|
|
3
|
-
|
|
4
|
-
namePrefix: development-
|
|
5
|
-
namespace: development-my-app
|
|
6
|
-
commonLabels:
|
|
7
|
-
environment: development
|
|
8
|
-
|
|
9
|
-
bases:
|
|
10
|
-
- ../base
|
|
11
|
-
|
|
12
|
-
resources:
|
|
13
|
-
- namespace.yaml
|
|
14
|
-
|
|
15
|
-
images:
|
|
16
|
-
- name: example
|
|
17
|
-
newName: example
|
|
18
|
-
newTag: latest
|
|
19
|
-
|
|
20
|
-
generatorOptions:
|
|
21
|
-
disableNameSuffixHash: true
|
|
22
|
-
|
|
23
|
-
secretGenerator:
|
|
24
|
-
- name: my-app
|
|
25
|
-
namespace: development-my-app
|
|
26
|
-
literals:
|
|
27
|
-
- NAMESPACE=development
|
|
28
|
-
- POSTGRES_PASSWORD=password
|
|
29
|
-
- POSTGRES_REPLICATION_PASSWORD=password
|
|
30
|
-
- DATABASE_URL=postgres://postgres:password@development-kubegres:5432/postgres?sslmode=disable
|
example/k8s/development/migration.yaml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
apiVersion: batch/v1
|
|
2
|
-
kind: Job
|
|
3
|
-
metadata:
|
|
4
|
-
name: migration
|
|
5
|
-
spec:
|
|
6
|
-
backoffLimit: 1
|
|
7
|
-
template:
|
|
8
|
-
spec:
|
|
9
|
-
restartPolicy: Never
|
|
10
|
-
containers:
|
|
11
|
-
- name: migration
|
|
12
|
-
image: example-dbmate:develop
|
|
13
|
-
command: ["dbmate", "migrate"]
|
|
14
|
-
envFrom:
|
|
15
|
-
- secretRef:
|
|
16
|
-
name: development-my-app
|
example/k8s/development/namespace.yaml
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
apiVersion: v1
|
|
2
|
-
kind: Namespace
|
|
3
|
-
metadata:
|
|
4
|
-
name: development-my-app
|