This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Create a new namespace in your cluster named "recap" | |
- Switch your context to use the namespace 'recap' | |
- Create a Deployment using the following command: | |
`kubectl create deployment apache --image=httpd` | |
- Verify the pod for the deployment is running | |
- Expose your deployment as a service named `apache` on port 80 | |
- Dump the Deployment `apache` to a **apache.yaml** file | |
- Edit the **apache.yaml**: | |
- Add a volume named `html` to the pod template spec | |
- Mount the volume into the `httpd` container at `/usr/local/apache2/htdocs/` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.github.httpbuilderng.http.HttpTask | |
import groovyx.net.http.ApacheEncoders | |
import static groovyx.net.http.MultipartContent.multipart | |
import static groovy.io.FileType.FILES | |
plugins { | |
id "io.github.http-builder-ng.http-plugin" version "0.1.1" | |
} | |
task javadoc(type: Javadoc) { | |
source = android.sourceSets.main.java.sourceFiles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2019 Layer5 Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty | |
# hit enter | |
linuxkit-025000000001:~# ls /var/lib/docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a headless service to make mongo pods available at mongo-0.mongo, mongo-1.mongo, mongo-2.mongo | |
# to connect to the replicaset use: mongo -server rs0/mongo-0.mongo,mongo-1.mongo,mongo-2.mongo | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mongo | |
labels: | |
role: mongo | |
environment: test | |
spec: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initContainerStatuses: | |
- containerID: docker://3feab2c9e5ec5d1db1e133f950dd2849e1bb5bba302923794ff930d5e1a0204a | |
image: otomato/istio-proxy-init:1.0.3p | |
imageID: docker-pullable://otomato/istio-proxy-init@sha256:5cdee706b9e327175b201ceb6278885769a8b82cab77b5e5f3246fee93eabdac | |
lastState: | |
terminated: | |
containerID: docker://3feab2c9e5ec5d1db1e133f950dd2849e1bb5bba302923794ff930d5e1a0204a | |
exitCode: 2 | |
finishedAt: 2018-11-05T08:07:00Z | |
reason: Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"consumer": { | |
"name": "billy" | |
}, | |
"provider": { | |
"name": "bobby" | |
}, | |
"interactions": [{ | |
"description": "Mytest", | |
"providerState": "User billy exists", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application { | |
name = "mongodb" | |
type = "docker-external" | |
} | |
customization { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application { | |
name = "ottofresh" | |
dependency { | |
source = "./mongodb" | |
} | |
} |