diff --git a/caddy.json b/caddy.json index 8a80af4..ef6e0ee 100644 --- a/caddy.json +++ b/caddy.json @@ -24,7 +24,7 @@ "handle": [ { "handler": "file_server", - "root": "./www" + "root": "/www" } ] } diff --git a/config/manifest.yaml b/config/manifest.yaml new file mode 100644 index 0000000..1899ad9 --- /dev/null +++ b/config/manifest.yaml @@ -0,0 +1,51 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: single-page-static-web + labels: + app: staticweb +spec: + replicas: 1 + selector: + matchLabels: + app: staticweb + template: + metadata: + labels: + app: staticweb + deployment: single-page-static-web + spec: + containers: + - name: staticweb + image: localhost:5001/single-page-static-web:latest + ports: + - containerPort: 8080 + name: http-web-svc +--- +apiVersion: v1 +kind: Service +metadata: + annotations: + app: single-page-static-web + name: staticweb +spec: + selector: + app: staticweb + deployment: single-page-static-web + ports: + - name: 8080-tcp + port: 8080 + protocol: TCP + targetPort: http-web-svc +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: default-ingress +spec: + defaultBackend: + service: + name: staticweb + port: + number: 8080