-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
아르고 cd 테스트
- Loading branch information
Showing
9 changed files
with
1,920 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.