install bookinfo application in namespace mesh install httpbin application
kubectl apply -n mesh -f samples/httpbin/httpbin.yaml
kubectl apply -n mesh -f samples/bookinfo/platform/kube/bookinfo.yaml
create headless service for httpbin
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" | |
) |
openssl genrsa -out self-ssl.key
openssl req -new -key self-ssl.key -out self-ssl.csr -config csr.conf
openssl x509 -req -days 365 -in self-ssl.csr -signkey self-ssl.key -out self-ssl.crt -extensions req_ext -extfile csr.conf
Sign from Root CA:
openssl x509 -req -days 365 -extensions req_ext -extfile csr.conf -CA RootCA.crt -CAkey RootCA.key -in self-ssl.csr -out self-ssl.crt
:%s/r//g 删除DOS方式的回车^M | |
:%s= *$== 删除行尾空白 | |
:%s/^(.*)n1/1$/ 删除重复行 | |
:%s/^.{-}pdf/new.pdf/ 只是删除第一个pdf | |
:%s/<!--_.{-}-->// 又是删除多行注释(咦?为什么要说「又」呢?) | |
:g/s*^$/d 删除所有空行 :这个好用有没有人用过还有其他的方法吗? |
Below are a set of best practices that I recommend for most customers. This information is based on my experience helping hundreds of Azure Redis customers investigate various issues.
FROM ubuntu:16.04 | |
MAINTAINER qunfengqiu | |
COPY ./CH_HCNetSDK_V5.3.5.2_build20171124_Linux64 /opt/CH_HCNetSDK_V5.3.5.2_build20171124_Linux64 | |
ENV ICEGRID_VERSION 3.7.2 | |
RUN buildDeps=' \ | |
wget \ |
#include <iostream> | |
#include <functional> | |
using namespace std; | |
struct Foo | |
{ | |
Foo (int num):num_ (num) | |
{ | |
} | |
void print_add (int i) const |