Note: Starting with v0.39.0, Prometheus Operator requires use of Kubernetes v1.16.x and up.
To authenticate a ServiceMonitor
s over a metrics endpoint use basicAuth
To authenticate a ServiceMonitor
s over a metrics endpoint use basicAuth
version: "3.3" | |
services: | |
traefik: | |
image: "traefik:v2.3" | |
container_name: "traefik" | |
command: | |
#- "--log.level=DEBUG" | |
- "--api.insecure=true" |
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
metadata: | |
name: local-storage | |
provisioner: kubernetes.io/no-provisioner | |
volumeBindingMode: WaitForFirstConsumer | |
--- | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: |
FROM php:7.4-alpine | |
# Install dev dependencies | |
RUN apk add --no-cache --virtual .build-deps \ | |
$PHPIZE_DEPS \ | |
curl-dev \ | |
imagemagick-dev \ | |
libtool \ | |
libxml2-dev \ | |
postgresql-dev \ |
# Iniciar projecte amb go mod | |
go mod init github.com/warlock/play | |
# Quin es el paquet actual | |
go list | |
# llista tots els paquets instalats | |
go list all | |
# llista tots els paquets instalats en el projecte actual |
# hostname per accedir a pods desde pods de diferents namespaces | |
# service_name.namespace_name.svc.cluster.local | |
### COMANDES GENERALS | |
# Obtenir tots els resources del namespace seleccionat | |
kubectl get all | |
# Carregar un projecte desde un manifest * | |
kubectl apply -f manifest.yml |
version: '3' | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- "5000:5000" | |
environment: | |
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data | |
volumes: |