-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from joswayski/genkey
Gibs key on FE, docs
- Loading branch information
Showing
28 changed files
with
767 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
root* |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{{- if .Values.services }} | ||
{{- with .Values.services }} | ||
{{- if .Values.service }} | ||
{{- with .Values.service }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .name }} | ||
name: {{ .metadata.name }} | ||
spec: | ||
clusterIP: {{ .clusterIP }} | ||
clusterIP: {{ .spec.clusterIP }} | ||
selector: | ||
app: {{ .name }} | ||
app: {{ .spec.selector.app }} | ||
ports: | ||
{{- range .spec.ports }} | ||
- protocol: TCP | ||
# Port the pod listens on - global value from common.yaml | ||
port: {{ .defaultContainerPort }} | ||
# Port that the service is exposed on | ||
targetPort: {{ .port }} | ||
port: {{ .port }} | ||
targetPort: {{ .targetPort }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
service: | ||
metadata: | ||
name: api | ||
spec: | ||
# clusterIP: None | ||
selector: | ||
app: api | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
|
||
|
||
deployment: | ||
metadata: | ||
name: api | ||
|
||
spec: | ||
replicas: 1 # :D | ||
template: | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
containers: | ||
- name: api | ||
image: joswayski/averagedatabase-api:latest | ||
port: 8080 | ||
|
||
readinessProbe: | ||
periodSeconds: 10 | ||
initialDelaySeconds: 10 | ||
httpGet: | ||
path: /health | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: ["sh", "-c", "sleep 10"] | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,53 @@ | ||
# Must start with 'ingress' key | ||
ingress: | ||
name: ingress | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt | ||
rules: | ||
- host: "averagedatabase.com" | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: web | ||
port: | ||
number: 80 | ||
# - path: /api/ | ||
# pathType: Prefix | ||
# backend: | ||
# service: | ||
# name: api | ||
# port: | ||
# number: 80 | ||
- host: "averagedatabase.com/api/" | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: api | ||
port: | ||
number: 80 | ||
- host: "*.averagedatabase.com" | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: web | ||
port: | ||
number: 80 | ||
# Temporarily disabled while i get unbanned from lets-encrypt | ||
# tls: | ||
# - hosts: | ||
# - "plutomi.com" | ||
# # HAVE TO USE DNS FOR WILDCARD CERT | ||
# # CURRENTLY BANNED :D | ||
# # https://stackoverflow.com/questions/68219076/cert-manager-no-configured-challenge-solvers-can-be-used-for-this-challenge | ||
# # https://cert-manager.io/docs/configuration/acme/dns01/cloudflare/ | ||
# - "services.plutomi.com" # not being used just needed a new cert | ||
# secretName: plutomi-tls-secret | ||
|
||
|
||
metadata: | ||
name: ingress | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt | ||
spec: | ||
rules: | ||
- host: "averagedatabase.com" | ||
http: | ||
paths: | ||
# Redirect to the API | ||
- path: /api/ | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: api | ||
port: | ||
number: 80 | ||
- path: /api | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: api | ||
port: | ||
number: 80 | ||
# Everything else goes to web | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: web | ||
port: | ||
number: 80 | ||
- host: "*.averagedatabase.com" | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: web | ||
port: | ||
number: 80 | ||
# tls: | ||
# - hosts: | ||
# - "plutomi.com" | ||
# # YOU HAVE TO USE DNS FOR WILDCARD CERT | ||
# # https://stackoverflow.com/questions/68219076/cert-manager-no-configured-challenge-solvers-can-be-used-for-this-challenge | ||
# # https://cert-manager.io/docs/configuration/acme/dns01/cloudflare/ | ||
# # If you get banned for too many cert attempts, just add a new domain | ||
# # and you can create a new cert. Wildcard, ideally, is best. | ||
# - "*.plutomi.com" | ||
# secretName: plutomi-tls-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
env: | ||
ENVIRONMENT: | ||
value: production | ||
BASE_API_URL: | ||
value: http://api.default.svc.cluster.local:80 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.