Remove petset documentations (#5395)
This commit is contained in:
committed by
Steve Perry
parent
bda3250c1b
commit
bccd6515f3
@@ -1,51 +0,0 @@
|
||||
# A headless service to create DNS records
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nginx
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
name: web
|
||||
# *.nginx.default.svc.cluster.local
|
||||
clusterIP: None
|
||||
selector:
|
||||
app: nginx
|
||||
---
|
||||
apiVersion: apps/v1alpha1
|
||||
kind: PetSet
|
||||
metadata:
|
||||
name: web
|
||||
spec:
|
||||
serviceName: "nginx"
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
annotations:
|
||||
pod.alpha.kubernetes.io/initialized: "true"
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
containers:
|
||||
- name: nginx
|
||||
image: gcr.io/google_containers/nginx-slim:0.8
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: web
|
||||
volumeMounts:
|
||||
- name: www
|
||||
mountPath: /usr/share/nginx/html
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: www
|
||||
annotations:
|
||||
volume.alpha.kubernetes.io/storage-class: anything
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
approvers:
|
||||
- aledbf
|
||||
- bprashanth
|
||||
- foxish
|
||||
|
||||
@@ -1,101 +0,0 @@
|
||||
# A headless service to create DNS records
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
||||
name: nginx
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
name: web
|
||||
# *.nginx.default.svc.cluster.local
|
||||
clusterIP: None
|
||||
selector:
|
||||
app: nginx
|
||||
---
|
||||
apiVersion: apps/v1beta1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: web
|
||||
spec:
|
||||
serviceName: "nginx"
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
annotations:
|
||||
pod.beta.kubernetes.io/init-containers: '[
|
||||
{
|
||||
"name": "peerfinder",
|
||||
"image": "gcr.io/google_containers/peer-finder:0.1",
|
||||
"args": [
|
||||
"-on-start=\"\"echo `
|
||||
readarray PEERS;
|
||||
echo $(hostname) > /usr/share/nginx/html/index.html;
|
||||
if [ 1 = ${#PEERS[@]} ]; then
|
||||
echo \"events{} http { server{ } }\";
|
||||
else
|
||||
echo \"events{} http { server{ location / { proxy_pass http://${PEERS[0]}; } } }\";
|
||||
fi;` > /conf/nginx.conf\"\"",
|
||||
"-service=nginx"
|
||||
],
|
||||
"env": [
|
||||
{
|
||||
"name": "POD_NAMESPACE",
|
||||
"valueFrom": {
|
||||
"fieldRef": {
|
||||
"apiVersion": "v1",
|
||||
"fieldPath": "metadata.namespace"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "www",
|
||||
"mountPath": "/usr/share/nginx/html"
|
||||
},
|
||||
{
|
||||
"name": "conf",
|
||||
"mountPath": "/conf"
|
||||
}
|
||||
]
|
||||
}
|
||||
]'
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: gcr.io/google_containers/nginx-slim:0.8
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: web
|
||||
command:
|
||||
- nginx
|
||||
args:
|
||||
- -g
|
||||
- "daemon off;"
|
||||
- -c
|
||||
- "/conf/nginx.conf"
|
||||
volumeMounts:
|
||||
- name: www
|
||||
mountPath: /usr/share/nginx/html
|
||||
- name: conf
|
||||
mountPath: /conf
|
||||
volumes:
|
||||
- name: conf
|
||||
emptyDir: {}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: www
|
||||
annotations:
|
||||
volume.alpha.kubernetes.io/storage-class: anything
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
@@ -1,100 +0,0 @@
|
||||
# A headless service to create DNS records
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ub
|
||||
labels:
|
||||
app: ub
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
name: web
|
||||
# *.ub.default.svc.cluster.local
|
||||
clusterIP: None
|
||||
selector:
|
||||
app: ub
|
||||
---
|
||||
apiVersion: apps/v1beta1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: vm
|
||||
spec:
|
||||
serviceName: "ub"
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ub
|
||||
annotations:
|
||||
pod.beta.kubernetes.io/init-containers: '[
|
||||
{
|
||||
"name": "rootfs",
|
||||
"image": "ubuntu:15.10",
|
||||
"command": [
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
"for d in usr lib etc; do cp -vnpr /$d/* /${d}mnt; done;"
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "usr",
|
||||
"mountPath": "/usrmnt"
|
||||
},
|
||||
{
|
||||
"name": "lib",
|
||||
"mountPath": "/libmnt"
|
||||
},
|
||||
{
|
||||
"name": "etc",
|
||||
"mountPath": "/etcmnt"
|
||||
}
|
||||
]
|
||||
}
|
||||
]'
|
||||
spec:
|
||||
containers:
|
||||
- name: ub
|
||||
image: ubuntu:15.10
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: web
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- 'while true; do sleep 10; done'
|
||||
volumeMounts:
|
||||
- name: usr
|
||||
mountPath: /usr
|
||||
- name: lib
|
||||
mountPath: /lib
|
||||
- name: etc
|
||||
mountPath: /etc
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: usr
|
||||
annotations:
|
||||
volume.alpha.kubernetes.io/storage-class: anything
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 300Mi
|
||||
- metadata:
|
||||
name: lib
|
||||
annotations:
|
||||
volume.alpha.kubernetes.io/storage-class: anything
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
- metadata:
|
||||
name: etc
|
||||
annotations:
|
||||
volume.alpha.kubernetes.io/storage-class: anything
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 150Mi
|
||||
|
||||
Reference in New Issue
Block a user