Skip to content

Commit

Permalink
autoscale demo
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoguzman committed Feb 16, 2022
1 parent 373aa06 commit 8664fd8
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
22 changes: 22 additions & 0 deletions devx/autoscale-demo/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-app
labels:
app: sample-app
spec:
replicas: 1
selector:
matchLabels:
app: sample-app
template:
metadata:
labels:
app: sample-app
spec:
containers:
- image: luxas/autoscale-demo:v0.1.2
name: metrics-provider
ports:
- name: http
containerPort: 8080
8 changes: 8 additions & 0 deletions devx/autoscale-demo/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- deployment.yaml
- service.yaml

namespace: autoscale-demo
15 changes: 15 additions & 0 deletions devx/autoscale-demo/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: sample-app
name: sample-app
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: sample-app
type: ClusterIP
22 changes: 22 additions & 0 deletions devx/base/autoscale-demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: autoscale-demo
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
source:
path: devx/autoscale-demo
repoURL: https://github.com/pacoguzman/gitops
targetRevision: HEAD
#plugin:
# name: "vela"
destination:
server: https://kubernetes.default.svc
namespace: autoscale-demo
project: default
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
prune: true
1 change: 1 addition & 0 deletions devx/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- base/autoscale-demo.yaml
#- base/backstage.yaml
- base/vela-hello-world.yaml

Expand Down

0 comments on commit 8664fd8

Please sign in to comment.