Skip to content

Commit

Permalink
reorganized manifests into kustomization gitops structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Smolen committed Mar 18, 2024
1 parent 7f7206f commit 31508f7
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 11 deletions.
20 changes: 10 additions & 10 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,28 @@ image::logo.png[20px,20px]

== API Endpoint Definition

`./src/api/authApi.ts`:
`./src/api/authApi.ts`::

const BASE_URL = 'http://localhost:8080/api/';
const BASE_URL = 'http://localhost:8080/api/';

== Frontend Endpoint Definition

`./package.json`:
`./package.json`::

"scripts": {
"dev": "vite --host 0.0.0.0 --port 3000",
...
}
"scripts": {
"dev": "vite --host 0.0.0.0 --port 3000",
...
}

== Contaierization

* https://plainenglish.io/blog/step-by-step-guide-to-dockerize-react-app-created-using-vite

== Roadmap

https://github.com/ant-design/ant-design

== References

![React Query and Axios: User Registration and Email Verification](https://codevoweb.com/wp-content/uploads/2022/09/React-Query-and-Axios-User-Registration-and-Email-Verification.webp)

Read the entire article here: [https://codevoweb.com/forgot-reset-passwords-with-react-query-and-axios](https://codevoweb.com/forgot-reset-passwords-with-react-query-and-axios)
https://github.com/kubernetes-sigs/kustomize/tree/master/examples/ldap/base[Kustomization Structure Example: `base`]
https://github.com/kubernetes-sigs/kustomize/tree/master/examples/ldap/overlays[Kustomization Structure Example: `overlays`]
6 changes: 6 additions & 0 deletions deploy/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
= GitOps Console on Kubernetes

== References

* https://github.com/kubernetes-sigs/kustomize/tree/master/examples/ldap/base[kustomization `base` reference]::
* https://github.com/kubernetes-sigs/kustomize/tree/master/examples/ldap/overlays[kustomization `overlays` reference]::
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ metadata:
name: console-frontend
namespace: console
spec:
host: console.kriipke.io
host: "*"
prefix: /
service: console-web.console:3000
File renamed without changes.
28 changes: 28 additions & 0 deletions deploy/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: console-web-base

patchesStrategicMerge:
- patch.yaml

namespace: console-dev

images:
- name: console-api
newName: ghcr.io/kriipke/console-api
newTag: develop
- name: console-web
newName: ghcr.io/kriipke/console-web
newTag: develop

resources:
- deployment.yaml
- host.yaml
- kustomization.yaml
- listener-http.yaml
- listener-https.yaml
- mapping.yaml
- pod-autoscaler.yaml
- service.yaml
- tlscontext.yaml
File renamed without changes.
17 changes: 17 additions & 0 deletions deploy/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: console-web-dev
images:
- name: console-api
newName: ghcr.io/kriipke/console-api
newTag: develop
- name: console-web
newName: ghcr.io/kriipke/console-web
newTag: develop
resources:
- ../../base
patches:
- path: deployment.yaml
namePrefix: goc-
namespace: console-dev

0 comments on commit 31508f7

Please sign in to comment.