Writer.
Like any of the stuff I post? Buy me a coffee: https://ko-fi.com/htipping
1/4 Zone spreading - Distribute your workloads across failure domains
#Kubernetes #K8s #CloudNative
1/4 Zone spreading - Distribute your workloads across failure domains
#Kubernetes #K8s #CloudNative
class PositiveNumber:
def __set__(self, obj, value):
if value <= 0: raise ValueError()
obj._value = value
#Python #PythonTips
class PositiveNumber:
def __set__(self, obj, value):
if value <= 0: raise ValueError()
obj._value = value
#Python #PythonTips
1/5 Process & prepare data before main container starts
1/5 Process & prepare data before main container starts
1/5 K8s cronjobs have a .spec.successfulJobsHistoryLimit. Default=3. Adjust to keep history longer. 🕒
1/5 K8s cronjobs have a .spec.successfulJobsHistoryLimit. Default=3. Adjust to keep history longer. 🕒
1/6 Least privilege - only open required ports & use SG references over CIDR blocks
1/6 Least privilege - only open required ports & use SG references over CIDR blocks
1/4 ClusterIP: Internal-only communication between pods within cluster, default type
1/4 ClusterIP: Internal-only communication between pods within cluster, default type
1/4 Labels: Machine-readable identifiers for selecting & grouping resources (pods, services).
Used with kubectl get/delete by selectors.
Example: environment=prod, app=frontend
1/4 Labels: Machine-readable identifiers for selecting & grouping resources (pods, services).
Used with kubectl get/delete by selectors.
Example: environment=prod, app=frontend
1/5 Context Managers: Automate cleanup & prevent connection leaks
with db.connect() as conn:
conn.execute("INSERT INTO users...")
1/5 Context Managers: Automate cleanup & prevent connection leaks
with db.connect() as conn:
conn.execute("INSERT INTO users...")
1/5 Build in public - Share your projects & progress on GitHub
1/5 Build in public - Share your projects & progress on GitHub
1/7 with statements aren't just for files - they're your secret weapon for clean resource management 🎯
1/7 with statements aren't just for files - they're your secret weapon for clean resource management 🎯
session = boto3.Session(profile_name='staging')
s3 = session.client('s3') # Safely scoped to staging
session = boto3.Session(profile_name='staging')
s3 = session.client('s3') # Safely scoped to staging
- 10K standard parameters (4KB each) per region
- Hierarchical storage (/prod/db/password)
- Version tracking & IAM controls
- AWS CLI & API support
- Native AWS service integration
- 10K standard parameters (4KB each) per region
- Hierarchical storage (/prod/db/password)
- Version tracking & IAM controls
- AWS CLI & API support
- Native AWS service integration