Skip to content

Commit

Permalink
Rel v0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Mar 9, 2024
1 parent 908ea9a commit 8832a9e
Show file tree
Hide file tree
Showing 10 changed files with 150 additions and 327 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ builds:
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}amd64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
Expand Down
18 changes: 12 additions & 6 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,41 @@ spec:
matchLabels:
os: darwin
arch: amd64
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Darwin_amd64.tar.gz" .TagName | indent 6 }}
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_darwin_amd64.tar.gz" .TagName | indent 6 }}
bin: kubectl-popeye
- selector:
matchLabels:
os: darwin
arch: arm64
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Darwin_arm64.tar.gz" .TagName | indent 6 }}
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_darwin_arm64.tar.gz" .TagName | indent 6 }}
bin: kubectl-popeye
- selector:
matchLabels:
os: linux
arch: amd64
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Linux_amd64.tar.gz" .TagName | indent 6}}
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_linux_amd64.tar.gz" .TagName | indent 6}}
bin: kubectl-popeye
- selector:
matchLabels:
os: linux
arch: arm64
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Linux_arm64.tar.gz" .TagName | indent 6 }}
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_linux_arm64.tar.gz" .TagName | indent 6 }}
bin: kubectl-popeye
- selector:
matchLabels:
os: windows
arch: amd64
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Windows_amd64.tar.gz" .TagName | indent 6 }}
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_windows_amd64.tar.gz" .TagName | indent 6 }}
bin: kubectl-popeye.exe
- selector:
matchLabels:
os: windows
arch: arm64
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Windows_arm64.tar.gz" .TagName | indent 6 }}
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_windows_amd64.tar.gz" .TagName | indent 6 }}
bin: kubectl-popeye.exe
- selector:
matchLabels:
os: windows
arch: arm64
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_windows_arm64.tar.gz" .TagName | indent 6 }}
bin: kubectl-popeye.exe
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME := popeye
PACKAGE := github.com/derailed/$(NAME)
VERSION := v0.20.5
VERSION := v0.21.0
GIT := $(shell git rev-parse --short HEAD)
DATE := $(shell date +%FT%T%Z)
IMG_NAME := derailed/popeye
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ popeye:
- fqns: [blee-ns]
codes: [106] # => skip code 106 for namespace blee-ns
# Skip secrets in namespace bozo.
secrets:
instances:
- fqns: [rx:^bozo]
# Configure the pods linter for v1/pods.
pods:
instances:
Expand Down
34 changes: 34 additions & 0 deletions change_logs/release_v0.21.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye_logo.png" align="right" width="200" height="auto"/>

# Release v0.21.0

## Notes

Thank you to all that contributed with flushing out issues and enhancements for Popeye! I'll try to mark some of these issues as fixed. But if you don't mind grab the latest rev and see if we're happier with some of the fixes! If you've filed an issue please help me verify and close. Your support, kindness and awesome suggestions to make Popeye better is as ever very much noticed and appreciated!

This project offers a GitHub Sponsor button (over here 👆). As you well know this is not pimped out by big corps with deep pockets. If you feel `Popeye` is saving you cycles diagnosing potential cluster issues please consider sponsoring this project!! It does go a long way in keeping our servers lights on and beers in our fridge.

Also if you dig this tool, please make some noise on social! [@kitesurfer](https://twitter.com/kitesurfer)

---

## Maintenance Release

---

## Resolved Issues

. [#293](https://github.com/derailed/popeye/issues/293) Spinach documentation
. [#263](https://github.com/derailed/popeye/issues/263) Fix automated action to push releases to krew

---

## Contributed PRs

Please give `Big Thanks!` and `ATTA Girls/Boys!` to all the fine contributors for making Popeye better for all of us!!

* [PR #294](https://github.com/derailed/popeye/pull/294) Krew manifest update

---

<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/imhotep_logo.png" width="32" height="auto"/>&nbsp; © 2024 Imhotep Software LLC. All materials licensed under [Apache v2.0](http://www.apache.org/licenses/LICENSE-2.0)
50 changes: 50 additions & 0 deletions spinach-examples/spinach_aks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# A Sample AKS Popeye configuration.
popeye:
allocations:
cpu:
# Checks if cpu is under allocated by more than 200% at current load.
underPercUtilization: 200
# Checks if cpu is over allocated by more than 50% at current load.
overPercUtilization: 50
memory:
# Checks if mem is under allocated by more than 200% at current load.
underPercUtilization: 200
# Checks if mem is over allocated by more than 50% at current load.
overPercUtilization: 50

# Excludes define rules to exampt resources from sanitization
excludes:
global:
fqns: [rx:kube-system]

linters:
clusterrolebindings:
instances:
- fqns: [rx:system, rx:aks, rx:omsagent]

clusterroles:
instances:
- fqns: [omsagent-reader, system, admin, edit, view, cluster-admin]
codes: [400]

resources:
# Nodes specific sanitization
node:
limits:
cpu: 90
memory: 80

# Pods specific sanitization
pod:
limits:
# Fail if cpu is over 80%
cpu: 80
# Fail if pod mem is over 75%
memory: 75
# Fail if more than 3 restarts on any pods
restarts: 3

# Code specifies a custom severity level ie critical=3, warn=2, info=1
overrides:
- codes: 206
severity: 1
47 changes: 47 additions & 0 deletions spinach-examples/spinach_eks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# A Sample EKS Popeye configuration.
popeye:
allocations:
cpu:
# Checks if cpu is under allocated by more than 200% at current load.
underPercUtilization: 200
# Checks if cpu is over allocated by more than 50% at current load.
overPercUtilization: 50
memory:
# Checks if mem is under allocated by more than 200% at current load.
underPercUtilization: 200
# Checks if mem is over allocated by more than 50% at current load.
overPercUtilization: 50

# Excludes define rules to exampt resources from sanitization
excludes:
global:
fqns: [rx:^kube-system,rx:^local-path-storage]

linters:
clusterroles:
instances:
- fqns: [rx:^eks,rx:^aws-node,rx:^system,admin,edit,view,cluster-admin]
codes: [400]

resources:
# Nodes specific sanitization
node:
limits:
cpu: 90
memory: 80

# Pods specific sanitization
pod:
limits:
# Fail if cpu is over 80%
cpu: 80
# Fail if pod mem is over 75%
memory: 75
# Fail if more than 3 restarts on any pods
restarts: 3


# Code specifies a custom severity level ie critical=3, warn=2, info=1
overrides:
- codes: 206
severity: 1
87 changes: 0 additions & 87 deletions spinach/spinach_aks.yml

This file was deleted.

91 changes: 0 additions & 91 deletions spinach/spinach_eks.yml

This file was deleted.

Loading

0 comments on commit 8832a9e

Please sign in to comment.