Skip to content

Object Parameters

POD

Oggetto Parametro Descrizione
Pod apiVersion Versione API (v1)
kind Tipo oggetto (Pod)
metadata name, namespace, labels, annotations
spec Definizione del pod
spec.containers Lista di container (name, image, ports, env, resources, volumeMounts)
spec.volumes Volumi collegati ai container
spec.restartPolicy Always, OnFailure, Never
spec.nodeSelector / affinity Posizionamento su nodi
spec.tolerations Gestione dei taint

DEPLOYMENTS

Oggetto Parametro Descrizione
Deployment apiVersion apps/v1
kind Deployment
metadata name, namespace, labels
spec.replicas Numero di pod desiderati
spec.selector Labels dei pod del deployment
spec.template Template dei pod (metadata + spec)
spec.strategy RollingUpdate o Recreate

SERVICES

Oggetto Parametro Descrizione
Service apiVersion v1
kind Service
metadata name, namespace, labels, annotations
spec.selector Labels dei pod da esporre
spec.type ClusterIP, NodePort, LoadBalancer, ExternalName
spec.ports port, targetPort, protocol

CONFIGMAP

Oggetto Parametro Descrizione
ConfigMap apiVersion v1
kind ConfigMap
metadata name, namespace
data Coppie chiave-valore
binaryData Dati binari

SECRETS

Oggetto Parametro Descrizione
Secret apiVersion v1
kind Secret
metadata name, namespace
type Opaque, kubernetes.io/dockerconfigjson, ecc.
data Valori codificati in base64

PERSISTENT VOLUME (PV)

Oggetto Parametro Descrizione
PersistentVolume (PV) apiVersion v1
kind PersistentVolume
metadata name, labels
spec.capacity Spazio disponibile
spec.accessModes ReadWriteOnce, ReadOnlyMany, ReadWriteMany
spec.persistentVolumeReclaimPolicy Retain, Recycle, Delete
spec.storageClassName StorageClass associata
spec.hostPath / nfs / csi Tipo di storage

PERSISTENT VOLUME CLAIM (PVC)

Oggetto Parametro Descrizione
PersistentVolumeClaim (PVC) apiVersion v1
kind PersistentVolumeClaim
metadata name, namespace
spec.accessModes Access mode richiesto
spec.resources.requests.storage Quantità di storage richiesta
spec.storageClassName StorageClass desiderata

INGRESS

Oggetto Parametro Descrizione
Ingress apiVersion networking.k8s.io/v1
kind Ingress
metadata name, namespace, annotations
spec.ingressClassName Classe di ingress
spec.rules Host + path + serviceName + servicePort
spec.tls Certificati TLS

INGRESSROUTE (TRAEFIK)

Oggetto Parametro Descrizione
IngressRoute (Traefik) apiVersion traefik.containo.us/v1alpha1
kind IngressRoute
metadata name, namespace, labels, annotations
spec.entryPoints Lista entrypoint (web, websecure)
spec.routes Lista route (match, kind, services)
spec.tls TLS configuration opzionale
spec.middlewares Middleware da applicare alle route