diff --git a/apps/hello-world/kustomization.yaml b/apps/hello-world/kustomization.yaml new file mode 100644 index 0000000..812672d --- /dev/null +++ b/apps/hello-world/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: hello-world-app + +resources: + - manifests/deployment.yaml + - manifests/service.yaml diff --git a/apps/hello-world/manifests/deployment.yaml b/apps/hello-world/manifests/deployment.yaml new file mode 100644 index 0000000..adfed40 --- /dev/null +++ b/apps/hello-world/manifests/deployment.yaml @@ -0,0 +1,28 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello-world + labels: + app.kubernetes.io/name: hello-world +spec: + replicas: 1 + revisionHistoryLimit: 5 + selector: + matchLabels: + app.kubernetes.io/name: hello-world + template: + metadata: + labels: + app.kubernetes.io/name: hello-world + spec: + automountServiceAccountToken: false + containers: + - name: hello-world + image: ghcr.io/do4-2022/openstack-k0s-apko/hello-world:ee5ffa6 + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 8080 + protocol: TCP + resources: {} diff --git a/apps/hello-world/manifests/service.yaml b/apps/hello-world/manifests/service.yaml new file mode 100644 index 0000000..30e6d75 --- /dev/null +++ b/apps/hello-world/manifests/service.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: hello-world + labels: + app.kubernetes.io/name: hello-world +spec: + selector: + app.kubernetes.io/name: hello-world + type: ClusterIP + ports: + - port: 8080 + targetPort: http + protocol: TCP + name: http