Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit af53100

Browse files
committed
feat: initial commit
1 parent ce8161f commit af53100

12 files changed

+138
-2
lines changed

.github/workflows/spellcheck.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Spellcheck
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
workflow_dispatch:
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: igsekor/[email protected]
14+
name: Spellcheck

.github/workflows/yamllint.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: YAMLLint
2+
on:
3+
- pull_request
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: 'Checkout'
9+
uses: actions/checkout@master
10+
- name: 'Lint'
11+
uses: karancode/yamllint-github-action@master
12+
with:
13+
yamllint_file_or_dir: '.'
14+
yamllint_strict: false

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
Pipfile

.spellcheck.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
matrix:
2+
- name: README
3+
sources:
4+
- README.md
5+
aspell:
6+
lang: en
7+
dictionary:
8+
wordlists:
9+
- .wordlist.txt
10+
output: build/dictionary/readme.dic
11+
pipeline:
12+
- pyspelling.filters.url:

.wordlist.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Kubernetes
2+
github
3+
https
4+
kluctl
5+
png

.yamllint

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
yaml-files:
3+
- '*.yaml'
4+
- '*.yml'
5+
- '.yamllint'
6+
rules:
7+
braces:
8+
max-spaces-inside: 1
9+
brackets: enable
10+
colons: enable
11+
commas: enable
12+
comments:
13+
level: warning
14+
comments-indentation:
15+
level: warning
16+
document-end: disable
17+
document-start:
18+
level: warning
19+
empty-lines: enable
20+
empty-values: disable
21+
hyphens: enable
22+
indentation: enable
23+
key-duplicates: enable
24+
key-ordering: disable
25+
line-length: enable
26+
new-line-at-end-of-file: enable
27+
new-lines: enable
28+
octal-values: disable
29+
quoted-strings: disable
30+
trailing-spaces: enable
31+
truthy:
32+
level: warning

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
# kluctl-examples-external-deployments
2-
Example configurations for external deployments
1+
# kluctl-examples-external-clusters
2+
3+
![kluctl](https://github.com/kluctl/kluctl/blob/80a09dfc6c06c5fc7002d088e213664f4e047b09/logo/kluctl.png)
4+
5+
kluctl is the missing glue that puts together your (and any third-party) deployments into one large declarative
6+
Kubernetes deployment, while making it fully manageable (deploy, diff, prune, delete, ...) via one unified command
7+
line interface.
8+
9+
This repository contains examples for external deployment configurations. Please take a look at
10+
[kluctl-examples](https://github.com/kluctl/kluctl-examples) for further information.

simple/deployment.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
includes:
2+
- path: deployment
3+
4+
commonLabels:
5+
my.prefix/environment: "{{ args.environment }}"
6+
my.prefix/deployment-project: k8s-deployment-nginx
7+
8+
deleteByLabels:
9+
my.prefix/environment: "{{ args.environment }}"
10+
my.prefix/deployment-project: k8s-deployment-nginx
11+
12+
args:
13+
- name: environment

simple/deployment/deployment.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
kustomizeDirs:
2+
- path: nginx
3+
4+
overrideNamespace: "{{ args.environment }}-nginx"

simple/deployment/nginx/deploy.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: nginx-deployment
5+
labels:
6+
app: nginx
7+
spec:
8+
replicas: 3
9+
selector:
10+
matchLabels:
11+
app: nginx
12+
template:
13+
metadata:
14+
labels:
15+
app: nginx
16+
spec:
17+
containers:
18+
- name: nginx
19+
image: nginx:1.14.2
20+
ports:
21+
- containerPort: 80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- namespace.yml
6+
- deploy.yml

simple/deployment/nginx/namespace.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# yamllint disable-file
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: {{ args.environment }}-nginx

0 commit comments

Comments
 (0)