انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-057-L03

Pods وDeployments

  • الدرس 3 من 10
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

run and update a service with a Deployment.

الموضوعات المخطط لها

  • A pod is one or more containers sharing a network; pods are disposable.
  • A Deployment keeps N replicas and performs rolling updates; it manages ReplicaSets.
  • Use an exact image tag or digest, never latest.
  • Labels and selectors connect Deployments, Services, and other objects.
تفاصيل المخطط المبدئي

عرض عملي

yaml
apiVersion: apps/v1
kind: Deployment
metadata: { name: orders }
spec:
  replicas: 3
  selector: { matchLabels: { app: orders } }
  template:
    metadata: { labels: { app: orders } }
    spec:
      containers:
        - name: orders
          image: registry.example/shop/orders:3f2a9c1

اختبر فهمك

Why not use latest?

أظهر الإجابة

It is mutable, so you cannot know or reproduce what is running.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.