From c8301c7f763c296587fb7167b5790a879718bbf0 Mon Sep 17 00:00:00 2001 From: glennc Date: Fri, 15 Nov 2019 13:04:11 -0800 Subject: [PATCH] insights --- src/BlazingPizza.Menu/BlazingPizza.Menu.csproj | 4 +++- src/BlazingPizza.Menu/Startup.cs | 1 + .../BlazingPizza.Orders.csproj | 2 ++ src/BlazingPizza.Orders/Startup.cs | 1 + src/BlazingPizza.Web/BlazingPizza.Web.csproj | 1 + src/BlazingPizza.Web/Startup.cs | 2 ++ src/BlazingPizza.Web/appsettings.Development.json | 4 ++-- src/deploy.ps | Bin 0 -> 300 bytes src/k8s/menu.yaml | 10 +++++++++- 9 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/deploy.ps diff --git a/src/BlazingPizza.Menu/BlazingPizza.Menu.csproj b/src/BlazingPizza.Menu/BlazingPizza.Menu.csproj index 6d4928b..2445e45 100644 --- a/src/BlazingPizza.Menu/BlazingPizza.Menu.csproj +++ b/src/BlazingPizza.Menu/BlazingPizza.Menu.csproj @@ -1,4 +1,4 @@ - + netcoreapp3.0 @@ -9,6 +9,8 @@ + + diff --git a/src/BlazingPizza.Menu/Startup.cs b/src/BlazingPizza.Menu/Startup.cs index bba4e27..d6c57a2 100644 --- a/src/BlazingPizza.Menu/Startup.cs +++ b/src/BlazingPizza.Menu/Startup.cs @@ -28,6 +28,7 @@ public void ConfigureServices(IServiceCollection services) { services.AddDbContext(options => options.UseSqlite("Data Source=pizza.db")); services.AddControllers(); + services.AddApplicationInsightsTelemetry(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. diff --git a/src/BlazingPizza.Orders/BlazingPizza.Orders.csproj b/src/BlazingPizza.Orders/BlazingPizza.Orders.csproj index 2728c32..443364b 100644 --- a/src/BlazingPizza.Orders/BlazingPizza.Orders.csproj +++ b/src/BlazingPizza.Orders/BlazingPizza.Orders.csproj @@ -22,6 +22,8 @@ + + diff --git a/src/BlazingPizza.Orders/Startup.cs b/src/BlazingPizza.Orders/Startup.cs index f16e32b..1c44ae8 100644 --- a/src/BlazingPizza.Orders/Startup.cs +++ b/src/BlazingPizza.Orders/Startup.cs @@ -30,6 +30,7 @@ public void ConfigureServices(IServiceCollection services) services.AddSingleton(); services.AddControllers(); services.AddGrpc(); + services.AddApplicationInsightsTelemetry(Configuration); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. diff --git a/src/BlazingPizza.Web/BlazingPizza.Web.csproj b/src/BlazingPizza.Web/BlazingPizza.Web.csproj index a1471e8..d6a4595 100644 --- a/src/BlazingPizza.Web/BlazingPizza.Web.csproj +++ b/src/BlazingPizza.Web/BlazingPizza.Web.csproj @@ -12,6 +12,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/BlazingPizza.Web/Startup.cs b/src/BlazingPizza.Web/Startup.cs index 31fdd7d..a9c8fc6 100644 --- a/src/BlazingPizza.Web/Startup.cs +++ b/src/BlazingPizza.Web/Startup.cs @@ -90,6 +90,8 @@ public void ConfigureServices(IServiceCollection services) options.KnownNetworks.Clear(); options.KnownProxies.Clear(); }); + + services.AddApplicationInsightsTelemetry(Configuration); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. diff --git a/src/BlazingPizza.Web/appsettings.Development.json b/src/BlazingPizza.Web/appsettings.Development.json index 90899ca..740a60e 100644 --- a/src/BlazingPizza.Web/appsettings.Development.json +++ b/src/BlazingPizza.Web/appsettings.Development.json @@ -8,8 +8,8 @@ }, "Authentication": { "Twitter": { - "ConsumerKey": "iITmb8albSxRJJy7LAeEa6emJ", - "ConsumerSecret": "FFW9blJ5XpyNs5ByUHkbKNZsMG0vNs8ZrlatV4OgI8KWTlmpxn" + "ConsumerKey": "", + "ConsumerSecret": "" } }, "Services": { diff --git a/src/deploy.ps b/src/deploy.ps new file mode 100644 index 0000000000000000000000000000000000000000..c43df344874dfbcf3beeb0f5d6d0388cfc6cf16c GIT binary patch literal 300 zcma*h!3}^Q3_#I4Q*;3m8NgwnZ6X0Jp%UZva#f?@`tuH-1QS<_vKCQ>&|)S-_gI=P vCbhu0XHfK+fw*KjSKf9wIDoaahlpP1>05T*2B}oys)P7(;KmPr==;E3y8&%t literal 0 HcmV?d00001 diff --git a/src/k8s/menu.yaml b/src/k8s/menu.yaml index 551fe07..0b4d9d3 100644 --- a/src/k8s/menu.yaml +++ b/src/k8s/menu.yaml @@ -35,4 +35,12 @@ spec: image: "blazingreg.azurecr.io/blazingpizzamenu" ports: - name: http - containerPort: 80 \ No newline at end of file + containerPort: 80 + volumeMounts: + - name: config-volume + mountPath: /config + volumes: + - name: config-volume + secret: + secretName: + menu-secrets \ No newline at end of file