Skip to content

Instantly share code, notes, and snippets.

View WolfgangOfner's full-sized avatar

Wolfgang Ofner WolfgangOfner

View GitHub Profile
@WolfgangOfner
WolfgangOfner / virtual-service-all-v1.yaml
Last active June 21, 2023 14:23
Apply Virtual Service
kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml -n istio-demo
@WolfgangOfner
WolfgangOfner / DestinationRules.bash
Last active June 21, 2023 14:23
Destination Rules
kubectl apply -f samples/bookinfo/networking/destination-rule-all.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: productpage
spec:
hosts:
- productpage
http:
- route:
- destination:
kubectl get destinationrules -o yaml -n istio-demo
kubectl delete -f samples/bookinfo/networking/virtual-service-all-v1.yaml -n istio-demo
kubectl apply -f samples/bookinfo/networking/virtual-service-ratings-test-abort.yaml -n istio-demo
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: ratings
spec:
hosts:
- ratings
http:
- match:
- headers:
kubectl delete -f samples/bookinfo/networking/virtual-service-all-v1.yaml -n istio-demo
kubectl label namespace customerapi-test istio-injection=enabled
using System.Collections.Generic;
using System.Threading;
using Microsoft.Extensions.Logging;
namespace DecoratorPattern.Services
{
public class DataService : IDataService
{
private readonly ILogger<DataService> _logger;