Skip to content

Commit

Permalink
feat(app): add hello world kubernetes manifests
Browse files Browse the repository at this point in the history
Signed-off-by: iverly <[email protected]>
  • Loading branch information
iverly committed Apr 18, 2024
1 parent d56f0f6 commit d54910d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/hello-world/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: hello-world-app

resources:
- manifests/deployment.yaml
- manifests/service.yaml
28 changes: 28 additions & 0 deletions apps/hello-world/manifests/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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: {}
16 changes: 16 additions & 0 deletions apps/hello-world/manifests/service.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d54910d

Please sign in to comment.