text stringlengths 0 59.1k |
|---|
-alsologtostderr |
-port 15001 |
-tablet_protocol grpc |
-service_map 'bsonrpc-vt-vtgateservice' |
-cell test" vitess |
volumes: |
- name: syslog |
hostPath: {path: /dev/log} |
- name: vtdataroot |
emptyDir: {} |
<|endoftext|> |
# source: k8s_examples/_archived/storage/vitess/etcd-controller-template.yaml type: yaml |
apiVersion: v1 |
kind: ReplicationController |
metadata: |
name: etcd-{{cell}} |
spec: |
replicas: {{replicas}} |
template: |
metadata: |
labels: |
component: etcd |
cell: {{cell}} |
app: vitess |
spec: |
volumes: |
- name: certs |
hostPath: {path: /etc/ssl/certs} |
containers: |
- name: etcd |
image: vitess/etcd:v2.0.13-lite |
volumeMounts: |
- name: certs |
readOnly: true |
mountPath: /etc/ssl/certs |
resources: |
limits: |
memory: "128Mi" |
cpu: "100m" |
command: |
- bash |
- "-c" |
- >- |
ipaddr=$(hostname -i) |
global_etcd=$ETCD_GLOBAL_SERVICE_HOST:$ETCD_GLOBAL_SERVICE_PORT |
cell="{{cell}}" && |
local_etcd_host_var="ETCD_${cell^^}_SERVICE_HOST" && |
local_etcd_port_var="ETCD_${cell^^}_SERVICE_PORT" && |
local_etcd=${!local_etcd_host_var}:${!local_etcd_port_var} |
if [ "{{cell}}" != "global" ]; then |
until etcdctl -C "http://$global_etcd" |
set "/vt/cells/{{cell}}" "http://$local_etcd"; do |
echo "[$(date)] waiting for global etcd to register cell '{{cell}}'"; |
sleep 1; |
done; |
fi |
etcd -name $HOSTNAME -discovery {{discovery}} |
-advertise-client-urls http://$ipaddr:4001 |
-initial-advertise-peer-urls http://$ipaddr:7001 |
-listen-client-urls http://$ipaddr:4001 |
-listen-peer-urls http://$ipaddr:7001 |
<|endoftext|> |
# source: k8s_examples/_archived/storage/vitess/etcd-service-template.yaml type: yaml |
kind: Service |
apiVersion: v1 |
metadata: |
name: etcd-{{cell}} |
labels: |
component: etcd |
cell: {{cell}} |
app: vitess |
spec: |
ports: |
- port: 4001 |
selector: |
component: etcd |
cell: {{cell}} |
app: vitess |
<|endoftext|> |
# source: k8s_examples/_archived/storage/vitess/guestbook-service.yaml type: yaml |
kind: Service |
apiVersion: v1 |
metadata: |
name: guestbook |
labels: |
component: guestbook |
app: vitess |
spec: |
ports: |
- port: 80 |
targetPort: http-server |
selector: |
component: guestbook |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.