initial scaffold
This commit is contained in:
commit
5c2080a73b
31 changed files with 1244 additions and 0 deletions
56
apps/hello-app/deployment.yaml
Normal file
56
apps/hello-app/deployment.yaml
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hello-app
|
||||
namespace: hello-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hello-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hello-app
|
||||
spec:
|
||||
# Uncomment if the hello-app package is set to private in Forgejo
|
||||
# (see docs/SETUP.md step 9).
|
||||
# imagePullSecrets:
|
||||
# - name: forgejo-registry
|
||||
containers:
|
||||
- name: hello-app
|
||||
# {"$imagepolicy": "hello-app:hello-app"}
|
||||
image: git.boglabob.com/codegit/hello-app:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello-app
|
||||
namespace: hello-app
|
||||
spec:
|
||||
selector:
|
||||
app: hello-app
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: hello-app
|
||||
namespace: hello-app
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: hello.boglabob.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: hello-app
|
||||
port:
|
||||
number: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue