//Jenkins
#since we are creating service configuration the API version would be v1 not core/v1 or app/v1 | |
#This is fix and you check the latest version on official kubernetes site | |
apiVersion: v1 | |
# Since we want to create a service there for kind would be Service | |
kind: Service | |
# Metadata for this service object | |
metadata: | |
name: service-backend # name of the serive | |
#Below will be the specification for this above service which tell k8S type of service we want to create on cluster. |
apiVersion: apps/v1 | |
# kind include service, deployment, job etc. | |
##### This is a Deployment object | |
kind: Deployment | |
# This metadata is about Deployment what is deployment name in kubernetes cluster | |
# You want to see to identify the deployment. | |
metadata: | |
name: kub-deployment-second-app | |
# Below is the specification of our deployment `kub-deployment-second-app` | |
spec: |
CDN is a computer networked system that connects to each other over the Internet and delivers music, pictures, videos, applications, and other files to users faster and more reliably with the server closest to each user.
What is CDN?
With the development of internet, users pay more and more attention to the browsing and effects of websites when using internet.However due to of the surging number of internet users and long routes of network access, the quality of users access is severly affected. Especially when the link between user and the website is bursted by large traffic data. poor quality of access is an urgent problem to be solved in areas where number of users in remote areas is rapidly increasing. How can we make high quality to users everywhere and minimize the resulting costs and pressure on web site management? Content Develivery Network was born.
CDN is computer networked system that connects of each other via internet to deliver music,pictures,videos,applicat
Docker/Images/Machine
http://circleci.com/docs/2.0/circleci-images/ https://circleci.com/docs/2.0/build/#nav-button
Chossing your Executor Type
https://circleci.com/docs/2.0/executor-types/
This version of CircleCI enables you to run jobs in one of three environments: using Docker images, using a dedicated Linux VM image, or using a macOS VM image.
Configuring Android Studio with Kotlin
Which is a new programming language that is a pragmatic, safe,concise, and interoperable alternative to Java.With Kotlin, you can implement your projects with less code, a higher level of abstraction, and fewer annoyances
Kotlin is concise, safe, pragmatic, and focused on interoperability with Java code. It can be used almost everywhere Java is used today - for server-side development,Android apps, and much more. Kotlin works great with all existing Java libraries and frameworks and runs with the same level of performance as Java.
This allows for shorter code and greater flexibility in creating data structures.But the downside is that problems like misspelled names can’t be detected during compilation and lead to runtime errors.
The ability of the compiler to determine types from context is called type inference.
Performance - Calling methods is faster because there’s no need to figure out at runtime which method needs to be called.
** Services and Dependency Injection **
import { Component, EventEmitter, Input, Output } from '@angular/core';
import {LoggingService} from "../logging.service";
@Component({
selector: 'app-account',
templateUrl: './account.component.html',
styleUrls: ['./account.component.css'],
providers:[LoggingService] //<-- service injection
** ngClass and ngStyle **
<div *ngIf="onlyOdd">
<ul class="list-group">
<li
class="list-group-item" *ngFor="let item of OddNumbers"
[ngClass]="{oddNumber: item % 2 !== 0}"> <!-- ngClass directivies oddNumber is css class-->
{{item}}