diff --git a/kustomize/deployment.yaml b/kustomize/deployment.yaml new file mode 100644 index 0000000..ac47684 --- /dev/null +++ b/kustomize/deployment.yaml @@ -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 diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml new file mode 100644 index 0000000..356c305 --- /dev/null +++ b/kustomize/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - deployment.yaml + - service.yaml diff --git a/kustomize/service.yaml b/kustomize/service.yaml new file mode 100644 index 0000000..35018b5 --- /dev/null +++ b/kustomize/service.yaml @@ -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