Initial commit

This commit is contained in:
Neil Carpenter
2020-12-02 14:42:20 -05:00
parent d4babd5431
commit 5a3cddb9d1
4 changed files with 101 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Check Kubernetes YAMLs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Scan repo
id: kube-lint-repo
uses: stackrox/kube-linter-action@v0.0.1
with:
directory: yamls
config: .kube-linter/config.yaml
+21
View File
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80