parent
812e828862
commit
2093f72602
|
@ -1,17 +0,0 @@
|
||||||
extends: default
|
|
||||||
|
|
||||||
ignore: |
|
|
||||||
ansible/galaxy_roles
|
|
||||||
ansible/galaxy_collections
|
|
||||||
ansible/group_vars/all/hosts.yml
|
|
||||||
ansible/roles/traefik/files/traefik.yml
|
|
||||||
ansible/roles/nebula/files/nebula.yml
|
|
||||||
|
|
||||||
rules:
|
|
||||||
document-start: disable
|
|
||||||
truthy: disable
|
|
||||||
quoted-strings:
|
|
||||||
quote-type: double
|
|
||||||
required: only-when-needed
|
|
||||||
line-length:
|
|
||||||
max: 160
|
|
|
@ -0,0 +1 @@
|
||||||
|
./yamllint.yml
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- whoami
|
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: whoami
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: whoami
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: whoami
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: whoami
|
||||||
|
image: traefik/whoami
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 80
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
imagePullPolicy: Always
|
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: whoami
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: whoami.localhost
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: whoami
|
||||||
|
port:
|
||||||
|
number: 80
|
|
@ -0,0 +1,8 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: whoami
|
||||||
|
resources:
|
||||||
|
- deployment.yml
|
||||||
|
- ingress.yml
|
||||||
|
- namespace.yml
|
||||||
|
- service.yml
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: whoami
|
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: whoami
|
||||||
|
labels:
|
||||||
|
app: whoami
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
app: whoami
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
kubectl apply -k ./k8s
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
PATH=${PWD}/env/bin:${PATH}
|
||||||
|
|
||||||
|
yamllint -c ./yamllint.yml ./k8s
|
|
@ -0,0 +1,17 @@
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
ignore: |
|
||||||
|
ansible/galaxy_roles
|
||||||
|
ansible/galaxy_collections
|
||||||
|
ansible/group_vars/all/hosts.yml
|
||||||
|
ansible/roles/traefik/files/traefik.yml
|
||||||
|
ansible/roles/nebula/files/nebula.yml
|
||||||
|
|
||||||
|
rules:
|
||||||
|
document-start: disable
|
||||||
|
truthy: disable
|
||||||
|
quoted-strings:
|
||||||
|
quote-type: double
|
||||||
|
required: only-when-needed
|
||||||
|
line-length:
|
||||||
|
max: 160
|
Loading…
Reference in New Issue