It’s a wrap: Key announcements from Next ‘19 UK

Next UK brought together more than 7,000 attendees to take part in discussions, breakout sessions, hands-on training and networking with industry leaders. And along the way there were a wide range of Google Cloud announcements and updates. Although a trip to London might not have been on everyone’s agenda, a trip through the week’s announcements is no further than this post. Read on for some of the highlights. Migrating, modernizing and managing infrastructureInfrastructure is the foundation of your IT environment—and Google Cloud. Earlier this year, we announced new general purpose and workload-optimized virtual machine families, which means you can migrate and run even more applications including AAA gaming, HPC and even SAP HANA. Building on our compute momentum, we recently made a number of announcements to help you take advantage of our robust network infrastructure, faster and more efficiently.  In the weeks leading up to Next UK, we announced major new networking functionality. Support for Bring Your Own IP (BYOIP) allows you to accelerate your cloud migration by carrying over your existing IP addresses to Google’s network infrastructure across all our 20 regions—we are the first cloud provider to make this feature globally available. Then, the new Network Intelligence Center provides comprehensive visibility into your global Google Cloud deployment, and lets you proactively manage your network operations, cutting down troubleshooting time and helping prevent network outages.We also want to make sure that both operators and developers are able to easily monitor their infrastructure and services and identify incidents as quickly as possible. At Next UK, we announced that Stackdriver Monitoring is moving into the Google Cloud Console (beta), allowing users to access all operations management tools in one place for a faster, easier, and more integrated experience. And with Stackdriver Logging’s new Log Router, also in beta, we provide operators with the flexibility and reliability they need to manage and route their logs; Logs Router also supports customer managed encryption keys (CMEK) for your security needs. Finally, with the launch of SLO Service API in beta, we are empowering operators on Google Cloud or on-prem to focus on a set of service health signals that reflects the end-customer experience. SLOs can be set on container or VMs environments, giving developers and operators end-to-end visibility of the health of their entire fleet of microservices, in a single place.And for specialized workloads that you aren’t ready to move to the cloud yet, we now offer via partners Bare Metal Solution, dedicated infrastructure on which you can run applications like Oracle Database that’s connected via a low-latency and highly resilient interconnect to Google Cloud.Accelerating app modernizationYou don’t just want to move your applications to the cloud; you want to modernize them too, much the way that new customers such as Kaeser Kompressoren SE and DenizBank are doing with Anthos.  To help you get there, Migrate for Anthos is now generally available, allowing you to convert physical servers or virtual machines from a variety of sources (on-prem, Amazon AWS, Microsoft Azure, or Google Compute Engine) directly into containers running in Anthos or Google Kubernetes Engine (GKE). Or perhaps you want to connect applications via APIs. Apigee hybrid is now generally available, letting you deploy your API runtimes in a hybrid environment—both on-prem or in Google Cloud, including Anthos.We’re also helping you modernize your software development processes. We announced the general availability of both Cloud Run and Cloud Run for Anthos last week, bringing the benefits of serverless to container-based applications. And building Kubernetes applications is now easier than ever, with the general availability of Cloud Code, which integrates directly into your IDE, so you can create cloud-native apps from the comfort of your favorite development environment.   Unlocking data insightsCapturing and managing the data you need is essential to build an analytics foundation. We’ve made it easier with a few new tools.This week we announced the general availability of Cloud Data Fusion, a managed, cloud-native data ingestion and integration service. It equips developers, data engineers and business analysts to easily build and manage ETL and ELT pipelines to cleanse, transform and blend data from a broad range of sources. Data Fusion shifts an organization’s focus away from code and integration to insights and action. Built on the open source project CDAP, the product’s open core ensures portability for users across hybrid and multi-cloud environments. CDAP’s broad integration with on-prem and public cloud platforms gives Data Fusion users the ability to break down silos and deliver more value than ever through Google’s industry-leading big data tools.To make streaming analytics simpler and more cost-effective, we announced new features in Cloud Dataflow SQL, available in the public preview, as well as the general availability of Cloud Dataflow Flexible Resource Scheduling (FlexRS) for cost-effective batch event processing. Streaming analytics is an important part of modern data analytics, letting businesses better understand their customers in real time and make decisions accordingly. These new features make streaming analytics easier and more accessible to data engineers, particularly those with database experience. Cloud Dataflow SQL lets you use SQL queries to develop and run Cloud Dataflow jobs from the BigQuery web UI, and new features include Cloud Storage file support and a visual schema editor. The new Cloud Dataflow FlexRS feature reduces batch processing costs by up to 40% using advanced resourcescheduling techniques and a mix of different virtual machine (VM) types (including thepreemptible VM instances) to decrease processing costs while providing the same job completion guarantees as regular Cloud Dataflow jobs.Increasing interpretability with Explainable AIAI and machine learning are among the most transformative technologies of our era, and our aim is to put these tools in reach of more businesses, and do it in a way that’s fairer and more responsible. Our announcements at Next UK continue to further those goals.We announced Explainable AI to increase interpretability of AI and help developers understand how their machine learning models reached certain outcomes. Explainable AI consists of tools and frameworks to deploy interpretable and inclusive machine learning models. AI Explanations for AutoML Tables and Cloud AI Platform are available now and to start making your own AI deployments more understandable with Explainable AI, visit cloud.google.com/explainable-ai. You can also learn more by reading our AI blog post.Bringing more assistive features to the workplaceSpeaking of AI, we’re introducing new ways to help people create high-quality, error-free documents. We’re bringing the Smart Compose feature to Google Docs(beta), which uses AI to suggest complete sentences as you type. And now with the help of neural machine translation, Docs can help prevent even more spelling or grammatical errors in your work. Beyond helping folks create top-notch Docs, we announced that we’re expanding the power of the Google Assistant for G Suite users (beta). When people are logged into their G Suite account, they’ll soon be able to accomplish more on the go, like using voice commands to manage their calendar, send quick messages, or dial into meetings.Read more about how you can start using assistive features in Docs or expanded functionality of the Google Assistant in this post.Advancing control and visibility in the cloudCloud security depends on a strong foundation. In the weeks leading up to Next UK, we, along with our partners, announced OpenTitan—the first open source silicon root of trust (RoT) project that provides RoT design and integration guidelines for use in data center servers, storage, peripherals, and more. Open sourcing silicon design makes it more transparent, trustworthy, and ultimately, secure.Building on a secure-by-design foundation, we announced multiple capabilities to help customers increase control and visibility over their data and secure their cloud environments: External Key Manager, Key Access Justifications, Cloud Armor WAF, Packet Mirroring,andAdvanced Protection Program for G Suite users. In addition, we announced technical capabilities in Google Cloud that our European customers can use to meet their preferences for additional data residency, operational control, and access control.Looking aheadWe’re grateful for the chance to spend two full days learning from our customers, collaborators and partners in EMEA this week, and hearing so many amazing stories. And while all good things must come to an end, we have Next ’20 to look forward to—April 6-8 in San Francisco. We hope to see you there.To learn more, visit g.co/cloudnext.
Quelle: Google Cloud Platform

Is it too late to integrate GitOps?

Author: Ryan Cook (rcook@redhat.com)
Is it too late to integrate GitOps?
By: Ryan Cook
The idiom “missed the boat” can be used to describe the loss of an opportunity or a chance to do something. With OpenShift, the excitement to use this new and cool product immediately may create your own “missed the boat” moment in regards to managing and maintaining deployments, routes, and other OpenShift objects but what if the opportunity isn’t completely gone?
Continuing with our series on GitOps (LINK), the following article will walk through the process of migrating an application and its resources that were created manually to a process in which a GitOps tool manages the assets. To help us understand the process we will manually deploy a httpd application. Using the steps below we will create a namespace, deployment, and service and expose the service which will create a route.
oc create -f https://raw.githubusercontent.com/openshift/federation-dev/master/labs/lab-4-assets/namespace.yaml
oc create -f https://raw.githubusercontent.com/openshift/federation-dev/master/labs/lab-4-assets/deployment.yaml
oc create -f https://raw.githubusercontent.com/openshift/federation-dev/master/labs/lab-4-assets/service.yaml
oc expose svc/httpd -n simple-app

We start with our sample application managed manually, then bring it under GitOps control in a way which ensures the application remains available.

Define a repository for the code
Export our current objects and load into git
Select and deploy a GitOps tool
Add the repository to our GitOps tool
Define the application in our GitOps tool
Perform a dry run of the object using the GitOps tool
Perform sync of the objects using the GitOps tool
Enable pruning and auto-syncing of the objects

As we have stated in the previous articles(LINK), when using GitOps the git repository is the source of truth for all of your objects within your Kubernetes cluster(s). We will assume that a git repository service is currently being used within your organization. This git repository can be public or private but the repository must be accessible by the Kubernetes clusters. The repository can be the same one as where the application code exists or a separate repository can be used specifically for deployments. It is suggested that the repository has strict permissions as secrets, routes, and other objects need to be stored.
For this exercise a new public repository can be created on GitHub. The repository can be named whatever you like but for this example we will use the name blogpost for our repository.
If the YAML files for the objects have not previously been stored in git or locally then oc or kubectl binary can help us out. Below we will request the YAML for our namespace, deployment, service, and route. Clone the newly created repository and cd into the directory.
oc get namespace simple-app -o yaml –export > namespace.yaml
oc get deployment httpd -o yaml -n simple-app –export > deployment.yaml
oc get service httpd -o yaml -n simple-app –export > service.yaml
oc get route httpd -o yaml -n simple-app –export > route.yaml

Make the following modification to the deployment.yaml to remove a field in which Argo CD cannot sync properly.
sed -i ‘/sgeneration: .*/d’ deployment.yaml

We also must modify the route. We will first set a multiline variable and then we will replace ingress: null with the contents of the variable.
export ROUTE=” ingress:
– conditions:
– status: ‘True’
type: Admitted”

sed -i “s/ ingress: null/$ROUTE/g” route.yaml

Once we have these files it is time to save them into the git repository. From this point forward, the repository should be the source of truth for anything and manual changes to any of the objects should be prohibited.
git commit -am ‘initial commit of objects’
git push origin master

We will assume that ArgoCD has already been deployed based on this blog post (LINK). So we will add the newly created repository to Argo CD that contains the simple-app code. Ensure that the repository below matches the one that was created in previous steps.
argocd repo add https://github.com/cooktheryan/blogpost

Next, create the app. The app defines the values for the GitOps tool to know the repository and path to use, the OpenShift cluster to manage the objects, the specific branch of the repository, and whether to sync assets automatically or not.
argocd app create –project default
–name simple-app –repo https://github.com/cooktheryan/blogpost.git
–path . –dest-server https://kubernetes.default.svc
–dest-namespace simple-app –revision master –sync-policy none

Once the application has been defined in Argo CD the tool will begin to verify the current objects deployed objects versus those defined in the repository. We have the sync policy currently disabled and pruning is not enabled so no items should be changed at this point. One thing that you will notice is that the application within Argo CD UI will be stated as “Out of Sync” this is due to a missing label that ArgoCD supplies. This label will not cause any assets to be redeployed when we run the sync.
Now let’s run a dry run to ensure no errors exist within our files.
argocd app sync simple-app –dry-run

If no errors show up during the dry run we can move forward with the sync.
argocd app sync simple-app

When running the command argocd get on our simple-app application we should see that the application is “Healthy” and “Synced”. This means that all of the resources in our git repository now match those that are deployed.
argocd app get simple-app
Name: simple-app
Project: default
Server: https://kubernetes.default.svc
Namespace: simple-app
URL: https://argocd-server-route-argocd.apps.example.com/applications/simple-app
Repo: https://github.com/cooktheryan/blogpost.git
Target: master
Path: .
Sync Policy: <none>
Sync Status: Synced to master (60e1678)
Health Status: Healthy
…

At this point we can enable “auto-sync” and “pruning” to ensure that nothing in manually created and that any time an object is updated and pushed to the repository it will be deployed.
argocd app set simple-app –sync-policy automated –auto-prune

Now you have successfully migrated an application that did not initially use GitOps to a GitOps managed application.
The post Is it too late to integrate GitOps? appeared first on Red Hat OpenShift Blog.
Quelle: OpenShift