Add CI/CD
This commit is contained in:
38
kubernetes/base/deployment.yaml
Normal file
38
kubernetes/base/deployment.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: deployment
|
||||
labels:
|
||||
app: dsm-client
|
||||
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: dsm-client
|
||||
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: dsm-client
|
||||
|
||||
spec:
|
||||
containers:
|
||||
- name: dsm-client
|
||||
image: IMAGE
|
||||
resources:
|
||||
limits:
|
||||
memory: 32Mi
|
||||
cpu: 500m
|
||||
requests:
|
||||
memory: 32Mi
|
||||
cpu: 5m
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 15
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 80
|
||||
18
kubernetes/base/ingress.yaml
Normal file
18
kubernetes/base/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ingress
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-cluster-issuer
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: service
|
||||
port:
|
||||
number: 80
|
||||
12
kubernetes/base/kustomization.yaml
Normal file
12
kubernetes/base/kustomization.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: dit-docs
|
||||
|
||||
commonLabels:
|
||||
app: dsm-client
|
||||
|
||||
resources:
|
||||
- ingress.yaml
|
||||
- service.yaml
|
||||
- deployment.yaml
|
||||
13
kubernetes/base/service.yaml
Normal file
13
kubernetes/base/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: service
|
||||
labels:
|
||||
app: dsm-client
|
||||
spec:
|
||||
selector:
|
||||
app: dsm-client
|
||||
ports:
|
||||
- port: 80
|
||||
type: ClusterIP
|
||||
14
kubernetes/development/kustomization.yaml
Normal file
14
kubernetes/development/kustomization.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: dit-docs
|
||||
namePrefix: dsm-client-
|
||||
|
||||
resources:
|
||||
- ../base
|
||||
|
||||
patches:
|
||||
- path: patches/ingress-host.yaml
|
||||
target:
|
||||
kind: Ingress
|
||||
9
kubernetes/development/patches/ingress-host.yaml
Normal file
9
kubernetes/development/patches/ingress-host.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
- op: add
|
||||
path: /spec/rules/0/host
|
||||
value: service-manual.docs.dev.krd
|
||||
- op: add
|
||||
path: /spec/tls
|
||||
value:
|
||||
- hosts:
|
||||
- service-manual.docs.dev.krd
|
||||
secretName: ingress-cert-dit-docs-dsm-client
|
||||
Reference in New Issue
Block a user