bmwx4 / k8s-install Goto Github PK
View Code? Open in Web Editor NEWkubernetes k8s docker
kubernetes k8s docker
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ops-container-grok-service
namespace: elasticstack
labels:
type: ops-elk
role: container-grok-service
spec:
replicas: 1
selector:
matchLabels:
app: container-grok-service
envior: prod
template:
metadata:
labels:
app: container-grok-service
envior: prod
spec:
volumes:
- name: container-grok-config
configMap:
name: ops-elk-container-grok
containers:
- name: container-nginx-application
image: registURL
imagePullPolicy: IfNotPresent
lifecycle:
postStart:
exec:
command: [ "/bin/sh", "-c", "echo -n 10.33.66.43 kafka03-ops-prod-bj1 >> /etc/hosts"]
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 15
periodSeconds: 6
successThreshold: 1
httpGet:
port: 9600
path: "/"
ports:
- containerPort: 9600
volumeMounts:
- name: container-grok-config
readOnly: true
mountPath: /usr/share/logstash/pipeline
restartPolicy: Always
日志报错
Warning FailedPostStartHook 21s (x3 over 40s) kubelet, 10.10.50.41 Exec lifecycle hook ([/bin/sh -c echo -n 10.33.66.43 kafka03-ops-prod-bj1 >> /etc/hosts]) for Container "container-nginx-application" in Pod "ops-container-grok-service-dd5d846-b29xh_elasticstack(c7b93718-5d8f-11e9-8a82-fa31c1372500)" failed - error: command '/bin/sh -c echo -n 10.33.66.43 kafka03-ops-prod-bj1 >> /etc/hosts' exited with 1: /bin/sh: /etc/hosts: Permission denied
, message: "/bin/sh: /etc/hosts: Permission denied\n"
Normal Killing 21s (x3 over 39s) kubelet, 10.10.50.41 Killing container with id docker://container-nginx-application:FailedPostStartHook
Warning BackOff 3s (x6 over 38s) kubelet, 10.10.50.41 Back-off restarting failed container
老师。您好!
今天通过 API server 去部署kubernetes Dashboard 的过程中,使用官网提供的 yaml 文件镜像拉取很慢,甚至是失败。后续是通过 SS client 的方式去获取。所以就想请教老师,是否有好的国内成品仓库可以分享下
老师,您好。
现在一个 yaml 文件写下来,快上千行了, 就拿 日志解析模块来说。 yaml 文件内容包含
老师,您好。 在配置kubelet 的步骤中,是每个实例节点都对应一个不同的token 还是 一个token 对应集群内的所有Node. 这两者有什么区别吗?
如果 spec.containers[].resources.requests.cpu 设置为 2,会被转换为 2 * 1024 = 2048 , 但这样就有问题, 这部分不是很明白? 还希望老师抽空回答下。
// The spec.containers[].resources.requests.cpu is converted to its core value, which is potentially fractional, and multiplied by 1024
// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.