https://github.com/dippynark/k8s-examples
Kubernetes configuration examples
https://github.com/dippynark/k8s-examples
Last synced: over 1 year ago
JSON representation
Kubernetes configuration examples
- Host: GitHub
- URL: https://github.com/dippynark/k8s-examples
- Owner: dippynark
- Created: 2017-10-29T23:14:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T20:42:32.000Z (over 5 years ago)
- Last Synced: 2025-03-15T16:48:48.608Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 605 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k8s-examples
This repository contains a set of configuration examples for various systems and
applications on Kubernetes.
## Examples
```sh
# generate basic auth username/password
htpasswd -c auth dippynark
kubectl create secret generic basic-auth --from-file=auth -n $NAMEPSACE
# search lidarr for unmapped content
curl -H "X-Api-Key: $API_KEY" http://lidarr.lidarr.svc.cluster.local/api/v1/trackfile?unmapped=true | jq '.[].path' # | xargs -I {} rm -f {}
# search lidarr for incomplete albums
curl -H "X-Api-Key: $API_KEY" http://lidarr.lidarr.svc.cluster.local/api/v1/album | jq '.[] | select(.statistics.percentOfTracks != 100 and .statistics.percentOfTracks != 0 and .statistics.percentOfTracks != null) | .artist.path + "/" + .title'
```