Skip to content

Instantly share code, notes, and snippets.

View helm-upgrade-deprecated-apis.sh
#!/bin/bash
# This script fixes helmcharts secrets that was deployed with API objects paths, that was deprecated.
# More info here https://github.com/helm/helm/issues/7219
# Use it own risks!
# After executing you need to redeploy
NamespaceName=$1
echo "${NamespaceName}"
View kubernetes-autoscaling-example.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: cluster-autoscaler
namespace: kube-system
labels:
app: cluster-autoscaler
spec:
replicas: 1
selector:
@philipbankier
philipbankier / docker-compose.yml
Created Oct 21, 2019
Quick-start local Elasticsearch and kibana
View docker-compose.yml
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0
environment:
- discovery.type=single-node
ports:
- 127.0.0.1:9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:7.1.0
View TypeScriptTwoArrayCheck
translateFilters(allData): void {
this.contentCheck = this.newFilters.some(check => check !== '');
}
updateCurrentFilters(): void {
this.newFilters.filter(selectedFilter => {
return this.currentFilters.some(currentCheck => currentCheck === selectedFilter);
});
}