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

argocd test yml #70

Merged
merged 46 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b6db077
argocd test yml
jinia91 Nov 5, 2024
8adc5d5
node exporter
jinia91 Nov 6, 2024
f3b36f5
node exporter mv o11y ns
jinia91 Nov 6, 2024
26c49e4
loki
jinia91 Nov 6, 2024
ae7d6ca
tempo origin
jinia91 Nov 6, 2024
c0fd2b3
tempo mv o11y
jinia91 Nov 6, 2024
ad55cb1
prometheus
jinia91 Nov 6, 2024
3c548ae
grafana
jinia91 Nov 6, 2024
3b2d636
otel
jinia91 Nov 6, 2024
95c2164
state metric
jinia91 Nov 6, 2024
a151b88
state metric
jinia91 Nov 6, 2024
a8e1608
state metric
jinia91 Nov 6, 2024
c236a5d
state metric
jinia91 Nov 6, 2024
7ea091a
state metric
jinia91 Nov 6, 2024
2a2649e
state metric
jinia91 Nov 6, 2024
63d7334
state metric
jinia91 Nov 6, 2024
fe66301
state metric
jinia91 Nov 6, 2024
385743e
state metric
jinia91 Nov 6, 2024
4353f66
state metric
jinia91 Nov 6, 2024
c0dff01
state metric
jinia91 Nov 6, 2024
89109fb
state metric
jinia91 Nov 6, 2024
6e7d44f
state metrics
jinia91 Nov 6, 2024
f2a8d85
state metrics
jinia91 Nov 6, 2024
705e96d
port
jinia91 Nov 6, 2024
1289545
port
jinia91 Nov 6, 2024
0b74536
port
jinia91 Nov 6, 2024
cf0e27b
grafana update
jinia91 Nov 6, 2024
7b42d75
latest update
jinia91 Nov 6, 2024
414252d
change namespace
jinia91 Nov 6, 2024
444e6ff
mysql cluster test deploy
jinia91 Nov 6, 2024
734974f
fowarding
jinia91 Nov 7, 2024
438a2fd
redis test
jinia91 Nov 7, 2024
5d9e33f
version
jinia91 Nov 7, 2024
db60fed
redis setting
jinia91 Nov 11, 2024
06df834
redis setting replicas 3
jinia91 Nov 11, 2024
056e309
chage pkg
jinia91 Nov 11, 2024
959b44f
metric test
jinia91 Nov 11, 2024
4dddf5c
metric test
jinia91 Nov 11, 2024
78f3ded
metric test
jinia91 Nov 12, 2024
d08ad7c
port
jinia91 Nov 12, 2024
f32a06f
redis-exporter
jinia91 Nov 12, 2024
91220e0
redis-exporter
jinia91 Nov 12, 2024
a955daa
redis-memory
jinia91 Nov 12, 2024
e24f6a9
mysql operator
jinia91 Nov 13, 2024
96850c0
mysql operator
jinia91 Nov 13, 2024
3909281
mysql operator
jinia91 Nov 13, 2024
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
1,216 changes: 1,216 additions & 0 deletions deploy/jiniaslog/monolith/redis/redis.yml

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions deploy/o11y/grafana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: grafana
namespace: o11y
spec:
replicas: 1
selector:
matchLabels:
app: grafana
template:
metadata:
labels:
app: grafana
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "3000"

spec:
containers:
- name: grafana
image: grafana/grafana:latest
env:
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "true"
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
value: "Admin"
- name: GF_AUTH_DISABLE_LOGIN_FORM
value: "true"
- name: GF_FEATURE_TOGGLES_ENABLE
value: "traceqlEditor"
ports:
- containerPort: 3000
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
volumeMounts:
- name: grafana-storage
mountPath: /var/lib/grafana
- name: config-volume
mountPath: /etc/grafana/provisioning/datasources/datasources.yml
subPath: grafana-datasources.yml
volumes:
- name: config-volume
configMap:
name: grafana-datasources-config
volumeClaimTemplates:
- metadata:
name: grafana-storage
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: grafana
spec:
type: NodePort
ports:
- port: 3000
protocol: TCP
targetPort: 3000
nodePort: 31272
selector:
app: grafana
302 changes: 302 additions & 0 deletions deploy/o11y/kube-state-metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,302 @@
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: true
metadata:
labels:
helm.sh/chart: kube-state-metrics-5.26.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: my-kube-state-metrics
app.kubernetes.io/version: "2.13.0"
name: my-kube-state-metrics
namespace: o11y
---
# Source: kube-state-metrics/templates/role.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: kube-state-metrics-5.26.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: my-kube-state-metrics
app.kubernetes.io/version: "2.13.0"
name: my-kube-state-metrics
rules:

- apiGroups: ["certificates.k8s.io"]
resources:
- certificatesigningrequests
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- configmaps
verbs: ["list", "watch"]

- apiGroups: ["batch"]
resources:
- cronjobs
verbs: ["list", "watch"]

- apiGroups: ["extensions", "apps"]
resources:
- daemonsets
verbs: ["list", "watch"]

- apiGroups: ["extensions", "apps"]
resources:
- deployments
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- endpoints
verbs: ["list", "watch"]

- apiGroups: ["autoscaling"]
resources:
- horizontalpodautoscalers
verbs: ["list", "watch"]

- apiGroups: ["extensions", "networking.k8s.io"]
resources:
- ingresses
verbs: ["list", "watch"]

- apiGroups: ["batch"]
resources:
- jobs
verbs: ["list", "watch"]

- apiGroups: ["coordination.k8s.io"]
resources:
- leases
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- limitranges
verbs: ["list", "watch"]

- apiGroups: ["admissionregistration.k8s.io"]
resources:
- mutatingwebhookconfigurations
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- namespaces
verbs: ["list", "watch"]

- apiGroups: ["networking.k8s.io"]
resources:
- networkpolicies
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- nodes
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- persistentvolumeclaims
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- persistentvolumes
verbs: ["list", "watch"]

- apiGroups: ["policy"]
resources:
- poddisruptionbudgets
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- pods
verbs: ["list", "watch"]

- apiGroups: ["extensions", "apps"]
resources:
- replicasets
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- replicationcontrollers
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- resourcequotas
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- secrets
verbs: ["list", "watch"]

- apiGroups: [""]
resources:
- services
verbs: ["list", "watch"]

- apiGroups: ["apps"]
resources:
- statefulsets
verbs: ["list", "watch"]

- apiGroups: ["storage.k8s.io"]
resources:
- storageclasses
verbs: ["list", "watch"]

- apiGroups: ["admissionregistration.k8s.io"]
resources:
- validatingwebhookconfigurations
verbs: ["list", "watch"]

- apiGroups: ["storage.k8s.io"]
resources:
- volumeattachments
verbs: ["list", "watch"]
---
# Source: kube-state-metrics/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: kube-state-metrics-5.26.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: my-kube-state-metrics
app.kubernetes.io/version: "2.13.0"
name: my-kube-state-metrics
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: my-kube-state-metrics
subjects:
- kind: ServiceAccount
name: my-kube-state-metrics
namespace: o11y
---
# Source: kube-state-metrics/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: my-kube-state-metrics
namespace: o11y
labels:
helm.sh/chart: kube-state-metrics-5.26.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/version: "2.13.0"
annotations:
prometheus.io/scrape: 'true'
spec:
type: "ClusterIP"
ports:
- name: "http"
protocol: TCP
port: 8080
targetPort: 8080

selector:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: my-kube-state-metrics
---
# Source: kube-state-metrics/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-kube-state-metrics
namespace: o11y
labels:
helm.sh/chart: kube-state-metrics-5.26.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: my-kube-state-metrics
app.kubernetes.io/version: "2.13.0"
spec:
selector:
matchLabels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: my-kube-state-metrics
replicas: 1
strategy:
type: RollingUpdate
revisionHistoryLimit: 10
template:
metadata:
labels:
helm.sh/chart: kube-state-metrics-5.26.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: my-kube-state-metrics
app.kubernetes.io/version: "2.13.0"
spec:
automountServiceAccountToken: true
hostNetwork: false
serviceAccountName: my-kube-state-metrics
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
containers:
- name: kube-state-metrics
args:
- --port=8080
- --resources=certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments
imagePullPolicy: IfNotPresent
image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.13.0
ports:
- containerPort: 8080
name: "http"
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /livez
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /readyz
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
resources:
{}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
Loading
Loading