GitOps scaffold: Argo CD bootstrap, app-of-apps, example workload
This commit is contained in:
parent
3b609b3077
commit
7cc6824e01
6 changed files with 112 additions and 3 deletions
32
clusters/default/example-app/deployment.yaml
Normal file
32
clusters/default/example-app/deployment.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: example-app
|
||||
namespace: example-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: example-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: example-app
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
image: nginx:1.27-alpine
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: example-app
|
||||
namespace: example-app
|
||||
spec:
|
||||
selector:
|
||||
app: example-app
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue