AHYBRID072 Enforcing Policy with Anthos Config Management Policy Controller avis
1792 avis
Akhilesh R. · Examiné il y a environ un an
Tiago C. · Examiné il y a environ un an
Lab Broken
Ray C. · Examiné il y a environ un an
Cuauhtémoc C. · Examiné il y a environ un an
There is this small bug: student_00_ff1a823507ac@cloudshell:~ (qwiklabs-gcp-01-48f0915fc630)$ cat config-management.yaml apiVersion: configmanagement.gke.io/v1 kind: ConfigManagement metadata: name: config-management applySpecVersion: 1 spec: # Set to true to install and enable Policy Controller policyController: enabled: true # Uncomment to prevent the template library from being installed # templateLibraryInstalled: false # Uncomment to enable support for referential constraints # referentialRulesEnabled: true # Uncomment to disable audit, adjust value to set audit interval # auditIntervalSeconds: 0 # Uncomment to log all denies and dryrun failures # logDeniesEnabled: true # Uncomment to exempt namespaces # exemptableNamespaces: ["namespace-name"] # ...other fields... student_00_ff1a823507ac@cloudshell:~ (qwiklabs-gcp-01-48f0915fc630)$ gcloud beta container fleet config-management apply --membership=${CLUSTER_NAME}-connect --config=config-management.yaml --project=$PROJECT_ID ERROR: (gcloud.beta.container.fleet.config-management.apply) Please remove illegal field(s) .apiVersion, .kind, .metadata student_00_ff1a823507ac@cloudshell:~ (qwiklabs-gcp-01-48f0915fc630)$ Solution To resolve this issue, you need to remove the illegal fields from your YAML file. Here’s how you can modify your config-management.yaml: Remove the following lines: apiVersion: configmanagement.gke.io/v1 kind: ConfigManagement metadata: Your modified YAML should look like this: yaml applySpecVersion: 1 spec: policyController: enabled: true # Uncomment to prevent the template library from being installed # templateLibraryInstalled: false # Uncomment to enable support for referential constraints # referentialRulesEnabled: true # Uncomment to disable audit, adjust value to set audit interval # auditIntervalSeconds: 0 # Uncomment to log all denies and dryrun failures # logDeniesEnabled: true # Uncomment to exempt namespaces # exemptableNamespaces: ["namespace-name"] # ...other fields... Re-run the command: After making these changes, try running the command again: bash gcloud beta container fleet config-management apply --membership=${CLUSTER_NAME}-connect --config=config-management.yaml --project=$PROJECT_ID
Bojan S. · Examiné il y a environ un an
Lucas O. · Examiné il y a environ un an
Alejandro M. · Examiné il y a environ un an
Leontinus Y. · Examiné il y a environ un an
Good Lab. But there is an issue. In Task 2 Create the Anthos Policy Controller config file, the config file ended to "ERROR: (gcloud.beta.container.fleet.config-management.apply) Please remove illegal field(s) .apiVersion, .kind, .metadata". Please investgate.
Rose C. · Examiné il y a environ un an
Erick A. · Examiné il y a environ un an
Lab is broken. # In Task 2: student_01_fe0f92db9b0c@cloudshell:~ (qwiklabs-gcp-02-ea36254591ad)$ gcloud beta container fleet config-management apply \ --membership=${CLUSTER_NAME}-connect \ --config=config-management.yaml \ --project=$PROJECT_ID ERROR: (gcloud.beta.container.fleet.config-management.apply) Please remove illegal field(s) .apiVersion, .kind, .metadata
Marcelo B. · Examiné il y a environ un an
Received the following error and removed the fields identified in order to complete the lab: ERROR: (gcloud.beta.container.fleet.config-management.apply) Please remove illegal field(s) .apiVersion, .kind, .metadata
Jason S. · Examiné il y a environ un an
Jordan T. · Examiné il y a environ un an
Marek K. · Examiné il y a environ un an
Marek K. · Examiné il y a environ un an
Marek K. · Examiné il y a environ un an
Piotr J. · Examiné il y a environ un an
Suraj G. · Examiné il y a environ un an
Suraj J. · Examiné il y a environ un an
Super
Learner d. · Examiné il y a environ un an
Pedro Jesus P. · Examiné il y a environ un an
Sarath T. · Examiné il y a environ un an
Tomasz S. · Examiné il y a environ un an
Melih G. · Examiné il y a environ un an
vitas y. · Examiné il y a environ un an
Nous ne pouvons pas certifier que les avis publiés proviennent de consommateurs qui ont acheté ou utilisé les produits. Les avis ne sont pas vérifiés par Google.