Skip to content

Commit

Permalink
checkpoint-kai-1700661105
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Nov 22, 2023
1 parent 66b6b77 commit d512f22
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
5 changes: 5 additions & 0 deletions infrastructure/application/cert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ resource "kubernetes_secret" "cert" {
"tls.crt" = ""
"tls.key" = ""
}
lifecycle {
ignore_changes = [
metadata,
]
}
}
4 changes: 2 additions & 2 deletions infrastructure/cert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ items:
metadata:
annotations:
cert-manager.io/issuer: letsencrypt-staging
kubernetes.io/ingress.allow-http: "true"
kubernetes.io/ingress.allow-http: true
kubernetes.io/ingress.class: gce
name: application-ingress
spec:
Expand Down Expand Up @@ -44,4 +44,4 @@ items:
- gke-test-3.coilysiren.me
kind: List
metadata:
resourceVersion: ""
resourceVersion: ''
4 changes: 2 additions & 2 deletions infrastructure/kubeconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ items:
app: application
spec:
containers:
- image: us-central1-docker.pkg.dev/dotted-hope-405813/repository/gke-test-3:certs-2b38bf8-kai
- image: us-central1-docker.pkg.dev/dotted-hope-405813/repository/gke-test-3:certs-66b6b77-kai
name: application
ports:
- containerPort: 8080
kind: List
metadata:
resourceVersion: ""
resourceVersion: ''
14 changes: 12 additions & 2 deletions src/main/api.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import flask


blueprint = flask.Blueprint("api", __name__, url_prefix="/api")
blueprint = flask.Blueprint("api", __name__, url_prefix="/")


@blueprint.route("/healthcheck")
@blueprint.route("")
def healthcheck_root():
"""used for debugging purposes"""
return flask.jsonify(
{
"status": "ok",
}
)


@blueprint.route("api/healthcheck")
def healthcheck():
"""used for debugging purposes"""
return flask.jsonify(
Expand Down

0 comments on commit d512f22

Please sign in to comment.