add Kubernetes manifests
This commit is contained in:
parent
ce3b64132a
commit
9ddb30771d
23
kustomize/deployment.yaml
Normal file
23
kustomize/deployment.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: caas
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: caas
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: caas
|
||||
spec:
|
||||
containers:
|
||||
- name: caas
|
||||
image: git.kill0.net/ryanc/caas:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
6
kustomize/kustomization.yaml
Normal file
6
kustomize/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
14
kustomize/service.yaml
Normal file
14
kustomize/service.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: caas
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: caas
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
Loading…
x
Reference in New Issue
Block a user