Skip to content

Commit

Permalink
init push for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
la-cc committed Jan 28, 2023
0 parents commit 8c803ad
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
Empty file added README.md
Empty file.
33 changes: 33 additions & 0 deletions deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-webapp-green
spec:
replicas: 2
selector:
matchLabels:
app: simple-webapp-green
template:
metadata:
labels:
app: simple-webapp-green
spec:
containers:
- image: "ghcr.io/la-cc/simple-webapp:1.0.0"
name: simple-webapp-green
env:
- name: APP_COLOR
value: "green"
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
ports:
- containerPort: 8080
securityContext:
runAsUser: 1000
dnsPolicy: ClusterFirst
restartPolicy: Always
8 changes: 8 additions & 0 deletions kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: simple-webapp-green

resources:
- namespace.yaml
- deployment.yaml
- service.yaml
19 changes: 19 additions & 0 deletions release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: simple-webapp-green
namespace: simple-webapp-green
spec:
interval: 30m0s
retryInterval: 5m0s
timeout: 5m
dependsOn:
- name: custom
namespace: flux-system
path: "."
prune: true
sourceRef:
kind: GitRepository
name: simple-webapp-green
namespace: flux-system
validation: client
11 changes: 11 additions & 0 deletions service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: simple-webapp-green-clusterip
namespace: simple-webapp-green
spec:
selector:
app: simple-webapp-green
ports:
- port: 80
targetPort: 8080

0 comments on commit 8c803ad

Please sign in to comment.