Skip to content

Commit

Permalink
add game
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <[email protected]>
  • Loading branch information
csantanapr committed Oct 27, 2023
1 parent b465514 commit cdf1ebf
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 4 deletions.
4 changes: 2 additions & 2 deletions patterns/gitops/getting-started-argocd/bootstrap/addons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ metadata:
namespace: argocd
spec:
syncPolicy:
preserveResourcesOnDeletion: true
preserveResourcesOnDeletion: false
generators:
- clusters: {}
template:
metadata:
name:
name: cluster-addons
spec:
project: default
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ spec:
- clusters: {}
template:
metadata:
name: 'cluster-addons'
name: workload
finalizers:
# This finalizer is for demo purposes, in production remove apps using argocd CLI "argocd app delete workload --cascade"
# When you invoke argocd app delete with --cascade, the finalizer is added automatically.
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: '{{metadata.annotations.workload_repo_url}}'
path: '{{metadata.annotations.workload_repo_basepath}}{{metadata.annotations.workload_repo_path}}'
targetRevision: '{{metadata.annotations.workload_repo_revision}}'
destination:
namespace: 'argocd'
name: '{{name}}'
syncPolicy:
automated:
Expand Down
66 changes: 66 additions & 0 deletions patterns/gitops/getting-started-argocd/k8s/game-2048.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: v1
kind: Namespace
metadata:
name: game-2048
spec: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: game-2048
name: deployment-2048
spec:
selector:
matchLabels:
app.kubernetes.io/name: app-2048
template:
metadata:
labels:
app.kubernetes.io/name: app-2048
spec:
containers:
- image: public.ecr.aws/l6m2t8p7/docker-2048
name: app-2048
ports:
- containerPort: 80
name: http
---
apiVersion: v1
kind: Service
metadata:
namespace: game-2048
name: service-2048
spec:
ports:
- name: http
port: 80
targetPort: http
protocol: TCP
type: ClusterIP
selector:
app.kubernetes.io/name: app-2048
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: game-2048
name: ingress-2048
annotations:
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/ssl-redirect: '443'
alb.ingress.kubernetes.io/target-type: ip
spec:
ingressClassName: alb
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: service-2048
port:
number: 80
tls:
- hosts: []

0 comments on commit cdf1ebf

Please sign in to comment.