Setup linting
This commit is contained in:
20
kubernetes/apps/whoami/deployment.yaml
Normal file
20
kubernetes/apps/whoami/deployment.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: whoami
|
||||
namespace: whoami
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: whoami
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: whoami
|
||||
spec:
|
||||
containers:
|
||||
- name: whoami
|
||||
image: traefik/whoami:v1.9.0
|
||||
ports:
|
||||
- containerPort: 80
|
||||
29
kubernetes/apps/whoami/ingress.yaml
Normal file
29
kubernetes/apps/whoami/ingress.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: whoami-tls
|
||||
namespace: whoami
|
||||
spec:
|
||||
secretName: whoami-tls
|
||||
issuerRef:
|
||||
name: letsencrypt-staging
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- whoami.frankoslaw.top
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: whoami-tls-ingress
|
||||
namespace: whoami
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`whoami.frankoslaw.top`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: whoami
|
||||
port: 5678
|
||||
tls:
|
||||
secretName: whoami-tls
|
||||
9
kubernetes/apps/whoami/kustomization.yaml
Normal file
9
kubernetes/apps/whoami/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: whoami
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
4
kubernetes/apps/whoami/namespace.yaml
Normal file
4
kubernetes/apps/whoami/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
kind: Namespace
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: whoami
|
||||
12
kubernetes/apps/whoami/service.yaml
Normal file
12
kubernetes/apps/whoami/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: whoami
|
||||
namespace: whoami
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 5678
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: whoami
|
||||
Reference in New Issue
Block a user