Skip to content

Commit

Permalink
step-final update
Browse files Browse the repository at this point in the history
  • Loading branch information
a3888s committed Dec 19, 2024
1 parent 2ec7479 commit 567e6df
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from http.server import HTTPServer, BaseHTTPRequestHandler


class StepFinalHandler(BaseHTTPRequestHandler):
class SimpleHandler(BaseHTTPRequestHandler):
def do_GET(self):
if self.path == "/":
self.send_response(200)
Expand All @@ -10,8 +9,7 @@ def do_GET(self):
else:
self.send_response(404)


if __name__ == "__main__":
server = HTTPServer(("0.0.0.0", 8080), StepFinalHandler)
server = HTTPServer(("0.0.0.0", 8080), SimpleHandler)
print("StepFinalProject v 1.0.0")
server.serve_forever()
39 changes: 39 additions & 0 deletions app/k8s/step-final-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: step-final-dev
namespace: argocd
spec:
project: default
source:
repoURL: 'https://github.com/a3888s/step-final.git'
targetRevision: dev # Гілка для dev
path: app/k8s
destination:
server: 'https://kubernetes.default.svc'
namespace: dev
syncPolicy:
automated:
prune: true
selfHeal: true

---

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: step-final-prod
namespace: argocd
spec:
project: default
source:
repoURL: 'https://github.com/a3888s/step-final.git'
targetRevision: main # Гілка для prod
path: app/k8s
destination:
server: 'https://kubernetes.default.svc'
namespace: prod
syncPolicy:
automated:
prune: true
selfHeal: true

0 comments on commit 567e6df

Please sign in to comment.