diff --git a/environments/preview-uffizzi/kustomization.yaml b/environments/preview-uffizzi/kustomization.yaml new file mode 100644 index 0000000..3659cb3 --- /dev/null +++ b/environments/preview-uffizzi/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +images: +- name: ghcr.io/mostlydevops/wordsmith-api + newTag: latest +- name: ghcr.io/mostlydevops/wordsmith-web + newTag: latest +configMapGenerator: +- files: + - words.sql + name: db-schema +resources: +- ../../base +- ./web-ingress.yaml diff --git a/environments/preview-uffizzi/web-ingress.yaml b/environments/preview-uffizzi/web-ingress.yaml new file mode 100644 index 0000000..9698a09 --- /dev/null +++ b/environments/preview-uffizzi/web-ingress.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: web +spec: + ingressClassName: nginx + rules: + - host: example.com + http: + paths: + - backend: + service: + name: web + port: + number: 8080 + path: / + pathType: Prefix + tls: + - hosts: + - example.com diff --git a/environments/preview-uffizzi/words.sql b/environments/preview-uffizzi/words.sql new file mode 100644 index 0000000..ec13172 --- /dev/null +++ b/environments/preview-uffizzi/words.sql @@ -0,0 +1,55 @@ +CREATE TABLE nouns (word TEXT NOT NULL); +CREATE TABLE verbs (word TEXT NOT NULL); +CREATE TABLE adjectives (word TEXT NOT NULL); + +INSERT INTO nouns(word) VALUES + ('cloud'), + ('elephant'), + ('gø language'), + ('laptøp'), + ('cøntainer'), + ('micrø-service'), + ('turtle'), + ('whale'), + ('gøpher'), + ('møby døck'), + ('server'), + ('bicycle'), + ('viking'), + ('mermaid'), + ('fjørd'), + ('legø'), + ('flødebolle'), + ('smørrebrød'); + +INSERT INTO verbs(word) VALUES + ('will drink'), + ('smashes'), + ('smøkes'), + ('eats'), + ('walks tøwards'), + ('løves'), + ('helps'), + ('pushes'), + ('debugs'), + ('invites'), + ('hides'), + ('will ship'); + +INSERT INTO adjectives(word) VALUES + ('the exquisite'), + ('a pink'), + ('the røtten'), + ('a red'), + ('the serverless'), + ('a brøken'), + ('a shiny'), + ('the pretty'), + ('the impressive'), + ('an awesøme'), + ('the famøus'), + ('a gigantic'), + ('the gløriøus'), + ('the nørdic'), + ('the welcøming'), + ('the deliciøus');