{"id":453693,"date":"2025-03-29T09:00:38","date_gmt":"2025-03-29T09:00:38","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=453693"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=453693","title":{"rendered":"<span>KRR \u2014 \u0432\u0430\u0448 \u043b\u0438\u0447\u043d\u044b\u0439 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043f\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0432 Kubernetes<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p><a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener noreferrer nofollow\">KRR (Kubernetes Resource Recommender)<\/a> \u2014 \u044d\u0442\u043e CLI-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 Kubernetes. \u041e\u043d \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 Pod&#8217;\u043e\u0432, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0435 \u0432 Prometheus, \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0requests\u00a0\u0438\u00a0limits\u00a0\u0434\u043b\u044f CPU \u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a krr \u0432 kubernetes \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0432 html \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043a\u0430\u043a web-\u0441\u0430\u0439\u0442.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u043e KRR<\/h3>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044e\u00a0<a href=\"https:\/\/sysdig.com\/blog\/millions-wasted-kubernetes\/\" rel=\"noopener noreferrer nofollow\">Sysdig<\/a>, \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b Kubernetes \u0438\u043c\u0435\u044e\u0442:<\/p>\n<ul>\n<li>\n<p>69% \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>18% \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0432\u0430\u0448\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e KRR, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 69% \u043d\u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u0445.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 KRR<\/h3>\n<p>KRR \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 Prometheus \u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 request \u0438 limit \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p><strong>CPU request<\/strong>\u00a0\u043d\u0430 66-\u0439 \u043f\u0435\u0440\u0446\u0435\u043d\u0442\u0438\u043b\u044c.<\/p>\n<\/li>\n<li>\n<p><strong>CPU limit<\/strong>\u00a0\u043d\u0430 95-\u0439 \u043f\u0435\u0440\u0446\u0435\u043d\u0442\u0438\u043b\u044c.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0430\u043c\u044f\u0442\u044c<\/strong>\u00a0\u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e + \u0431\u0443\u0444\u0435\u0440.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 KRR \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/h3>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c KRR \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n<pre><code>krr simple-limit -p &lt;Prometheus_URL&gt; --formatter yaml<\/code><\/pre>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u043e namespace:<\/p>\n<pre><code>krr simple-limit -p &lt;Prometheus_URL&gt; -n my-namespace<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a KRR \u0432 \u0432\u0438\u0434\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c<\/h3>\n<p>\u041d\u043e \u043b\u0443\u0447\u0448\u0435 \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0432\u0438\u0434\u0435\u043b\u0438 \u0432\u0441\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 HTML \u0440\u0430\u0431\u043e\u0442\u044b KRR\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e77\/0e2\/fd6\/e770e2fd6700241776116fea18d65030.png\" width=\"928\" height=\"677\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e77\/0e2\/fd6\/e770e2fd6700241776116fea18d65030.png\"\/><\/figure>\n<h3>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c:<\/h3>\n<h4>Namespace<\/h4>\n<p>\u041a\u043e\u0434 ns.yaml<\/p>\n<pre><code>--- apiVersion: v1 kind: Namespace metadata:   name: krr<\/code><\/pre>\n<h4>ServiceAccount<\/h4>\n<p>\u041a\u043e\u0434 sa.yaml<\/p>\n<pre><code>--- apiVersion: v1 kind: ServiceAccount metadata:   name: krr-service-account   namespace: krr<\/code><\/pre>\n<h4>ClusterRole \u0438 ClusterRoleBinding<\/h4>\n<p>\u041a\u043e\u0434 ClusterRole.yaml<\/p>\n<pre><code>--- kind: ClusterRole apiVersion: rbac.authorization.k8s.io\/v1 metadata:   name: krr-cluster-role rules:   - apiGroups:       - \"\"     resources:       - configmaps       - daemonsets       - deployments       - namespaces       - pods       - replicasets       - replicationcontrollers       - services     verbs:       - get       - list       - watch   - apiGroups:       - \"\"     resources:       - nodes     verbs:       - get       - list       - watch   - apiGroups:       - apps     resources:       - daemonsets       - deployments       - deployments\/scale       - replicasets       - replicasets\/scale       - statefulsets     verbs:       - get       - list       - watch<\/code><\/pre>\n<p>\u041a\u043e\u0434 ClusterRoleBinding.yaml<\/p>\n<pre><code>--- apiVersion: rbac.authorization.k8s.io\/v1 kind: ClusterRoleBinding metadata:   name: krr-cluster-role-binding roleRef:   apiGroup: rbac.authorization.k8s.io   kind: ClusterRole   name: krr-cluster-role subjects:   - kind: ServiceAccount     name: krr-service-account     namespace: krr<\/code><\/pre>\n<h4>Deployment \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c KRR<\/h4>\n<p>\u041a\u043e\u0434 deploy.yaml<\/p>\n<pre><code>--- apiVersion: apps\/v1 kind: Deployment metadata:   name: krr   namespace: krr spec:   replicas: 1   selector:     matchLabels:       app: krr   template:     metadata:       labels:         app: krr     spec:       serviceAccount: krr-service-account       serviceAccountName: krr-service-account       volumes:         - name: shared-storage           emptyDir: {}       containers:         - name: nginx           image: nginx:1.27.4           volumeMounts:             - name: shared-storage               mountPath: \/usr\/share\/nginx\/html           ports:             - containerPort: 80         - name: krr           image: robustadev\/krr:v1.22.0           volumeMounts:             - name: shared-storage               mountPath: \/output           env:             - name: COLUMNS               value: \"400\"           command:             - \/bin\/sh             - -c             - |               while true; do                 TEMP_FILE=\"\/output\/index_tmp.html\"                 FINAL_FILE=\"\/output\/index.html\"                 python krr.py simple-limit \\                   -p https:\/\/vmselect.corp\/select\/0\/prometheus \\                   --prometheus-label cluster -l dev \\                   --allow-hpa \\                   --use-oomkill-data \\                   --formatter html \\                   --fileoutput \"$TEMP_FILE\" &amp;&amp; mv \"$TEMP_FILE\" \"$FINAL_FILE\";                 sleep 1d;               done           resources:             limits:               memory: 2Gi             requests:               memory: 1Gi<\/code><\/pre>\n<h2>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u043a\u043e\u0434\u0443 deploy.yaml<\/h2>\n<p>\u0428\u0438\u0440\u0438\u043d\u0430 html \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0COLUMNS.<\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 krr \u0445\u043e\u0434\u0438\u0442 \u0432 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 k8s \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0442\u0430\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 pod, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u044b\u00a0ClusterRole,\u00a0ClusterRoleBinding,\u00a0ServiceAccount.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0&#8212;prometheus-label cluster\u00a0\u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0432 VictoriaMetrics.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f\u00a0simple-limit, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439\u00a0cpu limit\u00a0=\u00a0cpu request, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438\u00a0simple\u00a0cpu limit \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d.<\/p>\n<p>\u0412\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b sleep \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437.<\/p>\n<h4>Service<\/h4>\n<p>\u041a\u043e\u0434 svc.yaml<\/p>\n<pre><code>--- apiVersion: v1 kind: Service metadata:   name: krr-service   namespace: krr spec:   selector:     app: krr   ports:     - protocol: TCP       port: 80       targetPort: 80<\/code><\/pre>\n<h4>Ingress \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c<\/h4>\n<p>\u041a\u043e\u0434 ingress.yaml<\/p>\n<pre><code>--- apiVersion: networking.k8s.io\/v1 kind: Ingress metadata:   name: krr-ingress   namespace: krr   annotations:     cert-manager.io\/cluster-issuer: cluster-issuer spec:   ingressClassName: nginx   tls:     - hosts:         - krr.k8s.dev.corp       secretName: krr-tls   rules:     - host: krr.k8s.dev.corp       http:         paths:           - path: \/             pathType: Prefix             backend:               service:                 name: krr-service                 port:                   number: 80<\/code><\/pre>\n<h3>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0441 Kubernetes VPA<\/h3>\n<p>\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435\u00a0<a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener noreferrer nofollow\">Github KRR<\/a>\u00a0\u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0441 k8s VPA<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p><a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener noreferrer nofollow\">KRR<\/a> \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 Kubernetes, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c\u00a0<strong>CPU<\/strong>\u00a0\u0438\u00a0<strong>\u043f\u0430\u043c\u044f\u0442\u044c<\/strong>. \u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0435\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u0434\u043b\u044f DevOps-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/895488\/\"> https:\/\/habr.com\/ru\/articles\/895488\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p><a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener noreferrer nofollow\">KRR (Kubernetes Resource Recommender)<\/a> \u2014 \u044d\u0442\u043e CLI-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 Kubernetes. \u041e\u043d \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 Pod&#8217;\u043e\u0432, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0435 \u0432 Prometheus, \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0requests\u00a0\u0438\u00a0limits\u00a0\u0434\u043b\u044f CPU \u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a krr \u0432 kubernetes \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0432 html \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043a\u0430\u043a web-\u0441\u0430\u0439\u0442.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u043e KRR<\/h3>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044e\u00a0<a href=\"https:\/\/sysdig.com\/blog\/millions-wasted-kubernetes\/\" rel=\"noopener noreferrer nofollow\">Sysdig<\/a>, \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b Kubernetes \u0438\u043c\u0435\u044e\u0442:<\/p>\n<ul>\n<li>\n<p>69% \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>18% \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0432\u0430\u0448\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e KRR, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 69% \u043d\u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u0445.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 KRR<\/h3>\n<p>KRR \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 Prometheus \u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 request \u0438 limit \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p><strong>CPU request<\/strong>\u00a0\u043d\u0430 66-\u0439 \u043f\u0435\u0440\u0446\u0435\u043d\u0442\u0438\u043b\u044c.<\/p>\n<\/li>\n<li>\n<p><strong>CPU limit<\/strong>\u00a0\u043d\u0430 95-\u0439 \u043f\u0435\u0440\u0446\u0435\u043d\u0442\u0438\u043b\u044c.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0430\u043c\u044f\u0442\u044c<\/strong>\u00a0\u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e + \u0431\u0443\u0444\u0435\u0440.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 KRR \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/h3>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c KRR \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n<pre><code>krr simple-limit -p &lt;Prometheus_URL&gt; --formatter yaml<\/code><\/pre>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u043e namespace:<\/p>\n<pre><code>krr simple-limit -p &lt;Prometheus_URL&gt; -n my-namespace<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a KRR \u0432 \u0432\u0438\u0434\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c<\/h3>\n<p>\u041d\u043e \u043b\u0443\u0447\u0448\u0435 \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0432\u0438\u0434\u0435\u043b\u0438 \u0432\u0441\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 HTML \u0440\u0430\u0431\u043e\u0442\u044b KRR\u00a0<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c:<\/h3>\n<h4>Namespace<\/h4>\n<p>\u041a\u043e\u0434 ns.yaml<\/p>\n<pre><code>--- apiVersion: v1 kind: Namespace metadata:   name: krr<\/code><\/pre>\n<h4>ServiceAccount<\/h4>\n<p>\u041a\u043e\u0434 sa.yaml<\/p>\n<pre><code>--- apiVersion: v1 kind: ServiceAccount metadata:   name: krr-service-account   namespace: krr<\/code><\/pre>\n<h4>ClusterRole \u0438 ClusterRoleBinding<\/h4>\n<p>\u041a\u043e\u0434 ClusterRole.yaml<\/p>\n<pre><code>--- kind: ClusterRole apiVersion: rbac.authorization.k8s.io\/v1 metadata:   name: krr-cluster-role rules:   - apiGroups:       - \"\"     resources:       - configmaps       - daemonsets       - deployments       - namespaces       - pods       - replicasets       - replicationcontrollers       - services     verbs:       - get       - list       - watch   - apiGroups:       - \"\"     resources:       - nodes     verbs:       - get       - list       - watch   - apiGroups:       - apps     resources:       - daemonsets       - deployments       - deployments\/scale       - replicasets       - replicasets\/scale       - statefulsets     verbs:       - get       - list       - watch<\/code><\/pre>\n<p>\u041a\u043e\u0434 ClusterRoleBinding.yaml<\/p>\n<pre><code>--- apiVersion: rbac.authorization.k8s.io\/v1 kind: ClusterRoleBinding metadata:   name: krr-cluster-role-binding roleRef:   apiGroup: rbac.authorization.k8s.io   kind: ClusterRole   name: krr-cluster-role subjects:   - kind: ServiceAccount     name: krr-service-account     namespace: krr<\/code><\/pre>\n<h4>Deployment \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c KRR<\/h4>\n<p>\u041a\u043e\u0434 deploy.yaml<\/p>\n<pre><code>--- apiVersion: apps\/v1 kind: Deployment metadata:   name: krr   namespace: krr spec:   replicas: 1   selector:     matchLabels:       app: krr   template:     metadata:       labels:         app: krr     spec:       serviceAccount: krr-service-account       serviceAccountName: krr-service-account       volumes:         - name: shared-storage           emptyDir: {}       containers:         - name: nginx           image: nginx:1.27.4           volumeMounts:             - name: shared-storage               mountPath: \/usr\/share\/nginx\/html           ports:             - containerPort: 80         - name: krr           image: robustadev\/krr:v1.22.0           volumeMounts:             - name: shared-storage               mountPath: \/output           env:             - name: COLUMNS               value: \"400\"           command:             - \/bin\/sh             - -c             - |               while true; do                 TEMP_FILE=\"\/output\/index_tmp.html\"                 FINAL_FILE=\"\/output\/index.html\"                 python krr.py simple-limit \\                   -p https:\/\/vmselect.corp\/select\/0\/prometheus \\                   --prometheus-label cluster -l dev \\                   --allow-hpa \\                   --use-oomkill-data \\                   --formatter html \\                   --fileoutput \"$TEMP_FILE\" &amp;&amp; mv \"$TEMP_FILE\" \"$FINAL_FILE\";                 sleep 1d;               done           resources:             limits:               memory: 2Gi             requests:               memory: 1Gi<\/code><\/pre>\n<h2>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u043a\u043e\u0434\u0443 deploy.yaml<\/h2>\n<p>\u0428\u0438\u0440\u0438\u043d\u0430 html \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0COLUMNS.<\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 krr \u0445\u043e\u0434\u0438\u0442 \u0432 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 k8s \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0442\u0430\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 pod, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u044b\u00a0ClusterRole,\u00a0ClusterRoleBinding,\u00a0ServiceAccount.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0&#8212;prometheus-label cluster\u00a0\u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0432 VictoriaMetrics.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f\u00a0simple-limit, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439\u00a0cpu limit\u00a0=\u00a0cpu request, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438\u00a0simple\u00a0cpu limit \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d.<\/p>\n<p>\u0412\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b sleep \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437.<\/p>\n<h4>Service<\/h4>\n<p>\u041a\u043e\u0434 svc.yaml<\/p>\n<pre><code>--- apiVersion: v1 kind: Service metadata:   name: krr-service   namespace: krr spec:   selector:     app: krr   ports:     - protocol: TCP       port: 80       targetPort: 80<\/code><\/pre>\n<h4>Ingress \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c<\/h4>\n<p>\u041a\u043e\u0434 ingress.yaml<\/p>\n<pre><code>--- apiVersion: networking.k8s.io\/v1 kind: Ingress metadata:   name: krr-ingress   namespace: krr   annotations:     cert-manager.io\/cluster-issuer: cluster-issuer spec:   ingressClassName: nginx   tls:     - hosts:         - krr.k8s.dev.corp       secretName: krr-tls   rules:     - host: krr.k8s.dev.corp       http:         paths:           - path: \/             pathType: Prefix             backend:               service:                 name: krr-service                 port:                   number: 80<\/code><\/pre>\n<h3>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0441 Kubernetes VPA<\/h3>\n<p>\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435\u00a0<a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener noreferrer nofollow\">Github KRR<\/a>\u00a0\u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0441 k8s VPA<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p><a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener noreferrer nofollow\">KRR<\/a> \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432 Kubernetes, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c\u00a0<strong>CPU<\/strong>\u00a0\u0438\u00a0<strong>\u043f\u0430\u043c\u044f\u0442\u044c<\/strong>. \u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0435\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u0434\u043b\u044f DevOps-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/895488\/\"> https:\/\/habr.com\/ru\/articles\/895488\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-453693","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/453693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=453693"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/453693\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=453693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=453693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=453693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}