diff --git a/examples/kubernetes/quickstarts/proxy-demo/deployment.yaml b/examples/kubernetes/quickstarts/proxy-demo/deployment.yaml deleted file mode 100644 index 37faa1b12..000000000 --- a/examples/kubernetes/quickstarts/proxy-demo/deployment.yaml +++ /dev/null @@ -1,66 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: echo-app - namespace: quickstarts - labels: - app.kubernetes.io/name: echo-app -spec: - selector: - matchLabels: - app.kubernetes.io/name: echo-app - template: - metadata: - labels: - app.kubernetes.io/name: echo-app - spec: - automountServiceAccountToken: false - containers: - - name: heimdall - securityContext: - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - runAsUser: 1000 - image: "heimdall:local" - args: [ "-c", "/heimdall/heimdall.yaml", "serve", "proxy2" ] - ports: - - name: http-port - protocol: TCP - containerPort: 4455 - volumeMounts: - - name: config - mountPath: /heimdall/heimdall.yaml - subPath: heimdall.yaml - readOnly: true - - name: rules - mountPath: /heimdall/rules.yaml - subPath: rules.yaml - readOnly: true - - name: echo-app - securityContext: - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - runAsUser: 1000 - image: "containous/whoami:latest" - args: [ "--port", "8080", "--name", "echo-app" ] - - volumes: - - name: config - configMap: - name: heimdall-config - items: - - key: heimdall.yaml - path: heimdall.yaml - - name: rules - configMap: - name: heimdall-rules - items: - - key: rules.yaml - path: rules.yaml - diff --git a/examples/kubernetes/quickstarts/proxy-demo/heimdall-config.yaml b/examples/kubernetes/quickstarts/proxy-demo/heimdall-config.yaml deleted file mode 100644 index c070717d4..000000000 --- a/examples/kubernetes/quickstarts/proxy-demo/heimdall-config.yaml +++ /dev/null @@ -1,53 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: heimdall-config - namespace: quickstarts - labels: - app.kubernetes.io/name: echo-app -immutable: true -data: - heimdall.yaml: | - log: - level: debug - - serve: - proxy: - trusted_proxies: - - 0.0.0.0/0 - - mechanisms: - authenticators: - - id: anonymous_authenticator - type: anonymous - - id: deny_authenticator - type: unauthorized - authorizers: - - id: deny_all_requests - type: deny - - id: allow_all_requests - type: allow - finalizers: - - id: create_jwt - type: jwt - config: - signer: - key_store: - path: /etc/heimdall/certs/jwt/tls-combined.pem - error_handlers: - - id: redirect - type: redirect - config: - to: http://foo.bar?origin={{ .Request.URL | urlenc }} - - default_rule: - execute: - - authenticator: anonymous_authenticator - - authorizer: deny_all_requests - on_error: - - error_handler: redirect - if: type(Error) == authentication_error - - providers: - file_system: - src: /heimdall/rules.yaml \ No newline at end of file diff --git a/examples/kubernetes/quickstarts/proxy-demo/heimdall-rules.yaml b/examples/kubernetes/quickstarts/proxy-demo/heimdall-rules.yaml deleted file mode 100644 index 44fa72fd2..000000000 --- a/examples/kubernetes/quickstarts/proxy-demo/heimdall-rules.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: heimdall-rules - namespace: quickstarts - labels: - app.kubernetes.io/name: echo-app -immutable: true -data: - rules.yaml: | - version: "1alpha4" - rules: - - id: public-access - match: - routes: - - path: /pub/** - forward_to: - host: localhost:8080 - rewrite: - scheme: http - execute: - - authorizer: allow_all_requests - - - id: anonymous-access - match: - routes: - - path: /anon/** - forward_to: - host: localhost:8080 - rewrite: - scheme: http - execute: - - authorizer: allow_all_requests - - finalizer: create_jwt - - - id: redirect - match: - routes: - - path: /redir/** - forward_to: - host: localhost:8080 - rewrite: - scheme: http - execute: - - authenticator: deny_authenticator \ No newline at end of file diff --git a/examples/kubernetes/quickstarts/proxy-demo/ingress.yaml b/examples/kubernetes/quickstarts/proxy-demo/ingress.yaml deleted file mode 100644 index cc15a8168..000000000 --- a/examples/kubernetes/quickstarts/proxy-demo/ingress.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: echo-app - namespace: quickstarts - labels: - app.kubernetes.io/name: echo-app -spec: - ingressClassName: "nginx" - tls: - - hosts: - - echo-app.local - secretName: echo-app - rules: - - host: echo-app.local - http: - paths: - - path: / - pathType: ImplementationSpecific - backend: - service: - name: echo-app - port: - number: 8080 \ No newline at end of file diff --git a/examples/kubernetes/quickstarts/proxy-demo/kustomization.yaml b/examples/kubernetes/quickstarts/proxy-demo/kustomization.yaml deleted file mode 100644 index 9543649bf..000000000 --- a/examples/kubernetes/quickstarts/proxy-demo/kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - namespace.yaml - - heimdall-config.yaml - - heimdall-rules.yaml - - deployment.yaml - - service.yaml - - ingress.yaml diff --git a/examples/kubernetes/quickstarts/proxy-demo/namespace.yaml b/examples/kubernetes/quickstarts/proxy-demo/namespace.yaml deleted file mode 100644 index eb34edde7..000000000 --- a/examples/kubernetes/quickstarts/proxy-demo/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: quickstarts diff --git a/examples/kubernetes/quickstarts/proxy-demo/service.yaml b/examples/kubernetes/quickstarts/proxy-demo/service.yaml deleted file mode 100644 index 88bdc4dc0..000000000 --- a/examples/kubernetes/quickstarts/proxy-demo/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: echo-app - namespace: quickstarts - labels: - app.kubernetes.io/name: echo-app -spec: - ports: - - name: app-port - port: 8080 - targetPort: http-port - selector: - app.kubernetes.io/name: echo-app \ No newline at end of file