בעיות בהעברת שירותי Windows IIS
במסמך הזה מתוארים פתרונות עקיפים לכמה בעיות שאולי תיתקלו בהן במהלך העברת שירותי Windows IIS.
פריסת Windows IIS סומנה כלא מוכנה
פריסה של עומסי עבודה של Windows IIS עשויה להיות מסומנת כלא מוכנה בגלל פסק זמן קצר. אם אתם פורסים את עומסי העבודה באמצעות Skaffold, יכול להיות שהפריסה תוצג כפריסה שנכשלה.
כדי לעקוף את הבעיה, מגדילים את הזמן הקצוב לתפוגה ואת התקופה של בדיקת המוכנות באמצעות PowerShell:
foreach ($file in (Get-ChildItem . -Recurse -Include "deployment_spec.yaml")) { (Get-Content $file).replace("periodSeconds: 10", "periodSe
conds: 30").replace("timeoutSeconds: 1", "timeoutSeconds: 10") | Set-Content $file }
גרסת ה-build של Skaffold לתמונות של Windows נכשלת
יכול להיות שבניית Skaffold לתמונות Windows תיכשל במחשב Windows כי Skaffold מנסה למשוך את תמונת הבסיס עבור היעד הלא נכון.
אם הבעיה הזו מתרחשת, יכול להיות שתופיע הודעת שגיאה דומה להודעה הבאה:
Checking cache...
- migrated-image-6jc3z: Error checking cache.
getting hash for artifact "migrated-image-6jc3z": getting dependencies for "migrated-image-6jc3z": parsing ONBUILD instructions: retrieving image "mcr.microsoft.com/dotnet/framework/aspnet:4.8": no child with platform linux/amd64 in index mcr.microsoft.com/dotnet/framework/aspnet:4.8
כדי לעקוף את הבעיה הזו, צריך למשוך את קובץ האימג' באופן ידני באמצעות הפקודה docker pull ולהפעיל מחדש את ה-build של Skaffold.