Posts

Showing posts with the label exclude

Exclude a service from being auto sidecar injected by istio

As you may know, you can enable automatic sidecar injection for a specific namespace with istio: kubectl label namespace ABC istio-injection=enabled It means that every new service deployed in the ABC namespace will be injected with an Envoy sidecar. In case you don't want a specific service such as MyService to be controlled by Istio, you can set the annotation ' sidecar.istio.io/inject ' to ' false '. For example: References: https://istio.io/docs/reference/config/annotations/

Hide categories from your WordPress homepage

Using the WordPress's Loop  , pre_get_posts , you can hide certain categories from your homepage. In your theme's functions.php , add these following: function hide_category_home( $query ) { if ( $query->is_home ) { $query->set( 'cat', '-5, -34' ); } return $query; } add_filter( 'pre_get_posts', 'hide_category_home' ); 5 and 34 are IDs of categories you want to hide. Cool!