Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init k8s-monitoring #100

Merged
merged 2 commits into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ apps/snutt-prod/snutt-ev-web/ @wafflestudio/snutt-frontend
apps/truffle-prod/ @davin111 @PFCJeong
apps/sso-dev/ @wafflestudio/sso
apps/sso-prod/ @wafflestudio/sso
apps/guam/ @wafflestudio/guam
apps/seminar/ @wafflestudio/seminar
apps/webgam-dev/ @wafflestudio/interactive-web
apps/feelin-dev/ @wafflestudio/music-sns
Expand All @@ -20,3 +19,4 @@ apps/waffledotcom-dev/waffledotcom-server @wafflestudio/waffledotcom-backend
apps/waffledotcom-prod/waffledotcom-server @wafflestudio/waffledotcom-backend
apps/pupuri-prod/ @woohm402
apps/ggzz-dev/ @wafflestudio/ggzz
apps/k8s-monitoring/ @PFCJeong
38 changes: 0 additions & 38 deletions apps/guam/argo-project.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions apps/guam/service.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions apps/k8s-monitoring/argo-application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: k8s-monitoring
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/wafflestudio/waffle-world.git
targetRevision: HEAD
path: apps/k8s-monitoring/k8s-monitoring-app
destination:
server: https://kubernetes.default.svc
namespace: k8s-monitoring
83 changes: 83 additions & 0 deletions apps/k8s-monitoring/k8s-monitoring-app/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
labels:
app: app
namespace: k8s-monitoring
spec:
replicas: 1
selector:
matchLabels:
app: app
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
revisionHistoryLimit: 4
template:
metadata:
labels:
app: app
spec:
serviceAccountName: k8s-monitoring-sa
containers:
- image: 405906814034.dkr.ecr.ap-northeast-2.amazonaws.com/k8s-monitoring:0.0.1
imagePullPolicy: Always
name: app
envFrom:
- secretRef:
name: k8s-monitoring-secret
resources:
requests:
cpu: 100m
memory: 250Mi
limits:
cpu: 500m
memory: 250Mi
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: k8s-monitoring-sa
namespace: k8s-monitoring
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: k8s-monitoring-cluster-role
rules:
- apiGroups:
- "batch"
resources:
- jobs
- cronjobs
verbs:
- "*"
- apiGroups:
- ""
resources:
- nodes
verbs:
- "*"
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- "*"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: k8s-monitoring-cluster-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: k8s-monitoring-cluster-role
subjects:
- kind: ServiceAccount
name: k8s-monitoring-sa
namespace: k8s-monitoring
7 changes: 7 additions & 0 deletions apps/k8s-monitoring/k8s-monitoring-app/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: k8s-monitoring-secret
namespace: k8s-monitoring
stringData:
# SLACK_TOKEN:
1 change: 1 addition & 0 deletions apps/truffle-prod/truffle-consumer/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: truffle-secret
namespace: truffle-prod
stringData:
# SECURITY_KEY:
# SPRING_R2DBC_URL:
# SPRING_R2DBC_USERNAME:
# SPRING_R2DBC_PASSWORD:
Expand Down