Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:openshift-redhat:openshift-labs:skalieren-openshift [2018/07/11 16:01] – [Lab 5: Pod Scaling, Readiness Probe und Self Healing] michael | redhat:openshift-redhat:openshift-labs:skalieren-openshift [2018/07/11 16:23] (current) – [Aufgabe: LAB5.1 skalieren der Beispiel Applikation] michael | ||
---|---|---|---|
Line 28: | Line 28: | ||
</ | </ | ||
- | //<wrap em>Der rc sagt uns, wie viele Pods wir erwarten (DESIRED) und wie viele aktuell deployt sind (CURRENT).</ | + | {{fa> |
</ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
===== Aufgabe: LAB5.1 skalieren der Beispiel Applikation ===== | ===== Aufgabe: LAB5.1 skalieren der Beispiel Applikation ===== | ||
+ | |||
+ | Nun skalieren wir unsere Beispiels Applikation auf 3 Replicas: | ||
+ | < | ||
+ | # oc scale --replicas=3 dc appuio-php-docker | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | < | ||
+ | # oc get rc | ||
+ | </ | ||
+ | |||
+ | <sxh plain; gutter: false;> | ||
+ | NAME DESIRED | ||
+ | appuio-php-docker-1 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | < | ||
+ | # oc get pods | ||
+ | </ | ||
+ | |||
+ | <sxh plain; gutter: false;> | ||
+ | NAME READY | ||
+ | appuio-php-docker-1-2uc89 | ||
+ | appuio-php-docker-1-evcre | ||
+ | appuio-php-docker-1-tolpx | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | < | ||
+ | # oc describe svc appuio-php-docker | ||
+ | </ | ||
+ | |||
+ | <sxh plain; gutter: false;> | ||
+ | Name: | ||
+ | Namespace: | ||
+ | Labels: | ||
+ | Selector: | ||
+ | Type: | ||
+ | IP: | ||
+ | Port: | ||
+ | Endpoints: | ||
+ | Session Affinity: | ||
+ | No events. | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | Skalieren von Pods innerhalb eines Services ist sehr schnell, da OpenShift einfach eine neue Instanz des Docker Images als Container startet. | ||
+ | |||
+ | {{fa> | ||
+ | |||
+ | ---- | ||
+ | |||