Class: Google::Container::V1::NetworkPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb

Overview

Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/

Defined Under Namespace

Modules: Provider

Instance Attribute Summary collapse

Instance Attribute Details

#enabledtrue, false

Returns Whether network policy is enabled on the cluster.

Returns:

  • (true, false)

    Whether network policy is enabled on the cluster.



249
250
251
252
253
254
255
256
257
258
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 249

class NetworkPolicy
  # Allowed Network Policy providers.
  module Provider
    # Not set
    PROVIDER_UNSPECIFIED = 0

    # Tigera (Calico Felix).
    CALICO = 1
  end
end

#providerGoogle::Container::V1::NetworkPolicy::Provider

Returns The selected network policy provider.

Returns:



249
250
251
252
253
254
255
256
257
258
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 249

class NetworkPolicy
  # Allowed Network Policy providers.
  module Provider
    # Not set
    PROVIDER_UNSPECIFIED = 0

    # Tigera (Calico Felix).
    CALICO = 1
  end
end