Reorganized for new stable/waypoint versioning design.
This commit is contained in:
10
example-app/versions/1/README.md
Normal file
10
example-app/versions/1/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Example App
|
||||
|
||||
An example application deployed with public access. This app is useful for testing Wild Cloud's public ingress, TLS, and external DNS configuration.
|
||||
|
||||
The app uses the public wildcard TLS certificate and is accessible from the internet.
|
||||
|
||||
## Access
|
||||
|
||||
After deployment, the app will be available at:
|
||||
- `https://example-app.{your-cloud-domain}`
|
||||
40
example-app/versions/1/deployment.yaml
Normal file
40
example-app/versions/1/deployment.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: example-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: example-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: example-app
|
||||
spec:
|
||||
containers:
|
||||
- name: example-app
|
||||
image: nginx:alpine
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 128Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 32Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
31
example-app/versions/1/ingress.yaml
Normal file
31
example-app/versions/1/ingress.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: example-app
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/target: "{{ .cloud.externalDnsTarget }}"
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: false
|
||||
|
||||
# Optional: Enable HTTPS redirection
|
||||
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||
|
||||
# Optional: Enable basic auth
|
||||
# traefik.ingress.kubernetes.io/auth-type: basic
|
||||
# traefik.ingress.kubernetes.io/auth-secret: basic-auth
|
||||
spec:
|
||||
rules:
|
||||
- host: "{{ .host }}"
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: example-app
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- "{{ .host }}"
|
||||
secretName: wildcard-wild-cloud-tls
|
||||
14
example-app/versions/1/kustomization.yaml
Normal file
14
example-app/versions/1/kustomization.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: example-app
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
app: example-app
|
||||
managedBy: kustomize
|
||||
partOf: wild-cloud
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- ingress.yaml
|
||||
- namespace.yaml
|
||||
- service.yaml
|
||||
6
example-app/versions/1/manifest.yaml
Normal file
6
example-app/versions/1/manifest.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
version: 1.0.0
|
||||
defaultConfig:
|
||||
namespace: example-app
|
||||
externalDnsDomain: '{{ .cloud.domain }}'
|
||||
host: example-app.{{ .cloud.domain }}
|
||||
tlsSecretName: wildcard-wild-cloud-tls
|
||||
4
example-app/versions/1/namespace.yaml
Normal file
4
example-app/versions/1/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "{{ .namespace }}"
|
||||
12
example-app/versions/1/service.yaml
Normal file
12
example-app/versions/1/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: example-app
|
||||
spec:
|
||||
selector:
|
||||
app: example-app
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
name: http
|
||||
Reference in New Issue
Block a user